BoundPromise (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD

## org.grails.async.factory
[Groovy] Class BoundPromise

    java.lang.Object
      org.grails.async.factory.BoundPromise

All Implemented Interfaces:
  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

Property Summary
`java.lang.Object` | `value`

Constructor Summary
`BoundPromise(java.lang.Object value)`

Method Summary
`java.lang.Object` | `get()`
`java.lang.Object` | `get(long timeout, java.util.concurrent.TimeUnit units)`
`Promise` | `leftShift(groovy.lang.Closure callable)`
`Promise` | `onComplete(groovy.lang.Closure callable)`
`Promise` | `onError(groovy.lang.Closure callable)`
`Promise` | `then(groovy.lang.Closure callable)`

Methods inherited from 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

### value

    java.lang.Object value

Constructor Detail

### BoundPromise

    BoundPromise(java.lang.Object value)

Method Detail

### get

    java.lang.Object get()

### get

    java.lang.Object get(long timeout, java.util.concurrent.TimeUnit units)

### leftShift

    Promise leftShift(groovy.lang.Closure callable)

### onComplete

    Promise onComplete(groovy.lang.Closure callable)

### onError

    Promise onError(groovy.lang.Closure callable)

### then

    Promise then(groovy.lang.Closure callable)

Groovy Documentation