public static final class Schedulers.Snapshot extends java.lang.Object implements Disposable
Disposable
in case you don't want to restore the live Schedulers
Disposable.Composite, Disposable.Swap
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 Disposable
public void dispose()
Disposable
Implementations are required to make this method idempotent.
dispose
在接口中 Disposable