public static final class Schedulers.Snapshot extends Object implements Disposable
Disposable
in case you don't want to restore the live Schedulers
Disposable.Composite, Disposable.Swap
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Cancel or dispose the underlying task or resource.
|
boolean |
isDisposed()
Optionally return true when the resource or task is disposed.
|
public boolean isDisposed()
Disposable
Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
isDisposed
in interface Disposable
public void dispose()
Disposable
Implementations are required to make this method idempotent.
dispose
in interface Disposable