EsFutureListener
Description
The listener is registered on a future and handles value/error completions
Instance State
  • nextListener: <EsFutureListener> Listeners on the same future are linked through this link.
  • result: <EsFutureImpl> The future to complete when this listener is activated.
  • state: <Integer> Which fields means what.
  • handler: <Block> Used for then/whenDone callback and error test
  • errorHandler <Block> Used for error callbacks.
Class Methods
<details> catchError:onError:test:
<pre><code> Answer a new listener that handles errors emitted by a future
Arguments:
aResult - <EsFutureImpl>
onError - <Block>
onErrorTest - <Block>
Answers:
<EsFutureListener>
</code></pre> </details>
<details> then:onValue:onError:
<pre><code> Answer a new listener that handles a future's completion value
Arguments:
aResult - <EsFutureImpl>
onValue - <Block>
onError - <Block>
Answers:
<EsFutureListener>
</code></pre> </details>
<details> whenComplete:handler:
<pre><code> Answer a new listener whose handler is called when a future completes
Arguments:
aResult - <EsFutureImpl>
aHandler - <Block>
Answers:
<EsFutureListener>
</code></pre> </details>
Instance Methods
<details> handleError:
No comment
</details>
<details> handlesComplete
No comment
</details>
<details> handlesError
No comment
</details>
<details> handlesValue
No comment
</details>
<details> handleValue:
No comment
</details>
<details> handleWhenComplete
No comment
</details>
<details> hasErrorHandler
<pre><code> Whether this listener has an error handler.
This method must only be called if the listener #handlesError

Answers:
<Boolean>
</code></pre> </details>
<details> hasErrorTest
No comment
</details>
<details> matchesErrorTest:
No comment
</details>
<details> result
<pre><code> Answer the future to complete when this listener is activated
Answers:
<EsFutureImpl>
</code></pre> </details>
Last modified date: 04/21/2022