Method |
Description |
|
__construct ( amp\Observable $observable ) |
|
|
__destruct ( ) |
Marks the observer as resolved to relieve back-pressure on the observable. |
|
drain ( ) : array |
Returns an array of values that were not consumed by the Observer before the Observable completed. |
|
getCurrent ( ) : mixed |
Gets the last emitted value or throws an exception if the observable has completed. |
|
getResult ( ) : mixed |
Gets the result of the observable or throws the failure reason. Also throws an exception if the observable has
not completed. |
|
next ( ) : Interop\Async\Promise |
Succeeds with true if an emitted value is available by calling getCurrent() or false if the observable has
resolved. If the observable fails, the returned promise will fail with the same exception. |
|
observe ( ) : amp\Observable |
|
|