Package org.reactfx
Class BiSuspendable
- java.lang.Object
-
- org.reactfx.BiSuspendable
-
- All Implemented Interfaces:
Suspendable
class BiSuspendable extends java.lang.Object implements Suspendable
-
-
Field Summary
Fields Modifier and Type Field Description private Suspendable
s1
private Suspendable
s2
-
Constructor Summary
Constructors Constructor Description BiSuspendable(Suspendable s1, Suspendable s2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Guard
suspend()
Suspends this suspendable object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.reactfx.Suspendable
suspendWhen, suspendWhile, suspendWhile
-
-
-
-
Field Detail
-
s1
private final Suspendable s1
-
s2
private final Suspendable s2
-
-
Constructor Detail
-
BiSuspendable
public BiSuspendable(Suspendable s1, Suspendable s2)
-
-
Method Detail
-
suspend
public Guard suspend()
Description copied from interface:Suspendable
Suspends 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:
suspend
in 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
Guard
isAutoCloseable
, which makes it convenient to use in try-with-resources.
-
-