Class MultiSuspendable
java.lang.Object
org.reactfx.MultiSuspendable
- All Implemented Interfaces:
Suspendable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Suspendable
suspendWhen, suspendWhile, suspendWhile
-
Field Details
-
suspendables
-
-
Constructor Details
-
MultiSuspendable
-
-
Method Details
-
suspend
Description copied from interface:SuspendableSuspends this suspendable object.In case of suspendable
Observable, suspends notification delivery for this observable object. Notifications produced while suspended may be queued for later delivery, accumulated into a single cumulative notification, or discarded completely, depending on the concrete implementation.- Specified by:
suspendin interfaceSuspendable- Returns:
- a Guard instance that can be released to end
suspension. In case of suspended notifications, releasing the returned
Guard will trigger delivery of queued or accumulated
notifications, if any.
The returned
GuardisAutoCloseable, which makes it convenient to use in try-with-resources.
-