Package: org.grails.plugins.web.async

## [Groovy] Class WebRequestPromiseDecorator

- org.grails.plugins.web.async.WebRequestPromiseDecorator

- All Implemented Interfaces and Traits:
    PromiseDecorator

      @groovy.transform.CompileStatic
      @java.lang.Deprecated
      class WebRequestPromiseDecorator

  A promise decorated lookup strategy that binds a WebRequest to the promise thread

  deprecated:
    This class is unsafe because the request may have terminated by the time the promise executes
  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `GrailsWebRequest` | `webRequest`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `WebRequestPromiseDecorator (GrailsWebRequest webRequest)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<D>` | `groovy.lang.Closure<D>` | `decorate(groovy.lang.Closure<D> c)`
    `` | `java.lang.Object` | `invokeClosure(groovy.lang.Closure c, java.lang.Object args)`

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

    - #### GrailsWebRequest webRequest

  - ### Constructor Detail

    - #### WebRequestPromiseDecorator(GrailsWebRequest webRequest)

  - ### Method Detail

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

    - #### @groovy.transform.CompileStatic(TypeCheckingMode.SKIP) java.lang.Object invokeClosure(groovy.lang.Closure c, java.lang.Object args)