public final class Disposables
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Consumer<Disposable> |
consumeAndDispose()
Returns a consumer that calls dispose on the received Disposable.
|
static Disposable |
disposed() |
static Disposable |
empty() |
static CompositeDisposable |
from(Disposable... resources) |
static Disposable |
from(java.util.concurrent.Future<?> future) |
static Disposable |
from(java.util.concurrent.Future<?> future,
boolean allowInterrupt) |
static Disposable |
from(java.lang.Runnable run) |
static Disposable |
from(org.reactivestreams.Subscription subscription) |
public static Disposable from(java.lang.Runnable run)
public static Disposable from(java.util.concurrent.Future<?> future)
public static Disposable from(org.reactivestreams.Subscription subscription)
public static Disposable from(java.util.concurrent.Future<?> future, boolean allowInterrupt)
public static Disposable empty()
public static Disposable disposed()
public static CompositeDisposable from(Disposable... resources)
public static Consumer<Disposable> consumeAndDispose()