ReactorPromise (Grails 3.1.1)
Date: 2016-02-04

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
      class ReactorPromise
      extends java.lang.Object

  A Promise implementation for Reactor

  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 | Name and description
    --- | ---
    `Promise<T>` | `accept(T value)`
    `T` | `get()`
    `T` | `get(long timeout, java.util.concurrent.TimeUnit units)`
    `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 T get()

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

    - #### @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)