PromiseDecorator (Grails 3.2.8)
Date: 2017-03-23

Package: grails.async.decorator

## [Groovy] Interface PromiseDecorator

- Decorates any function execution potentially wrapping an asynchronous function execution in new functionality.

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<D>` | `groovy.lang.Closure<D>` | `decorate(groovy.lang.Closure<D> c)` Decorates the given closures, returning the decorated closure

- - ### Method Detail

    - #### <D> groovy.lang.Closure<D> decorate(groovy.lang.Closure<D> c)

      Decorates the given closures, returning the decorated closure

      Parameters:
        `c` - The closure to decorate
      Returns:
        The decorated closure