Package: org.grails.async.factory.reactor

## [Groovy] Class ReactorPromise<T>

- org.grails.async.factory.reactor.ReactorPromise

- All Implemented Interfaces and Traits:
    Promise

      @groovy.transform.CompileStatic
      @java.lang.Deprecated
      class ReactorPromise
      extends java.lang.Object

  A Promise implementation for Reactor

  deprecated:
    Reactor promise integration is deprecated and will be removed in a future version of Grails
  Authors:
    Graeme Rocher
  Since:
    3.0

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `reactor.rx.Promise<T>` | `internalPromise`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ReactorPromise (groovy.lang.Closure<T> callable, reactor.Environment environment)`
    `ReactorPromise (reactor.rx.Promise promise)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Promise<T>` | `accept(T value)`
    `` | `boolean` | `cancel(boolean mayInterruptIfRunning)`
    `` | `T` | `get()`
    `` | `T` | `get(long timeout, java.util.concurrent.TimeUnit units)`
    `` | `boolean` | `isCancelled()`
    `` | `boolean` | `isDone()`
    `` | `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

    - #### reactor.rx.Promise<T> internalPromise

  - ### Constructor Detail

    - #### ReactorPromise(groovy.lang.Closure<T> callable, reactor.Environment environment)

    - #### ReactorPromise(reactor.rx.Promise promise)

  - ### Method Detail

    - #### @java.lang.Override Promise<T> accept(T value)

    - #### @java.lang.Override boolean cancel(boolean mayInterruptIfRunning)

    - #### @java.lang.Override T get()

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

    - #### @java.lang.Override boolean isCancelled()

    - #### @java.lang.Override boolean isDone()

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

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

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