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:
</details>
<details> handlesComplete
</details>
<details> handlesError
</details>
<details> handlesValue
</details>
<details> handleValue:
</details>
<details> handleWhenComplete
</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
</details>
<details> matchesErrorTest:
</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