BoundPromise (Grails 2.4.4)
Date: 2014-10-28

Package: org.grails.async.factory

## [Groovy] Class BoundPromise<T>

- org.grails.async.factory.BoundPromise

- All Implemented Interfaces and Traits:
    Promise

      @groovy.transform.CompileStatic
      class BoundPromise
      extends java.lang.Object

  A bound promise is a promise which is already resolved and doesn't require any asynchronous processing to calculate the value

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `T` | `value`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `BoundPromise (T value)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `T` | `get()`
    `T` | `get(long timeout, java.util.concurrent.TimeUnit units)`
    `Promise<T>` | `leftShift(groovy.lang.Closure callable)`
    `Promise<T>` | `onComplete(groovy.lang.Closure callable)`
    `Promise<T>` | `onError(groovy.lang.Closure callable)`
    `Promise<T>` | `then(groovy.lang.Closure callable)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Property Detail

    - #### T value

  - ### Constructor Detail

    - #### BoundPromise(T value)

  - ### Method Detail

    - #### T get()

    - #### T get(long timeout, java.util.concurrent.TimeUnit units)

    - #### Promise<T> leftShift(groovy.lang.Closure callable)

    - #### Promise<T> onComplete(groovy.lang.Closure callable)

    - #### Promise<T> onError(groovy.lang.Closure callable)

    - #### Promise<T> then(groovy.lang.Closure callable)