public interface Chit
com.diffplug.common.swt.SwtRx#disposableEar(Widget)
Modifier and Type | Interface and Description |
---|---|
static class |
Chit.Settable
The standard implementation of DisposableEar.
|
Modifier and Type | Method and Description |
---|---|
static Chit |
alreadyDisposed()
Returns a
Chit which has already been disposed. |
default Runnable |
guard(Runnable delegate)
Wraps the runnable such that it will only run iff the disposable has not been disposed,
according to
isDisposed() . |
boolean |
isDisposed()
Returns whether the resource is disposed.
|
void |
runWhenDisposed(Runnable whenDisposed)
Adds a listener which will run when the given element is disposed.
|
static Chit.Settable |
settable()
Creates a Settable Disposable ear.
|
boolean isDisposed()
void runWhenDisposed(Runnable whenDisposed)
isDisposed()
), the runnable will be executed immediately.default Runnable guard(Runnable delegate)
isDisposed()
.static Chit.Settable settable()