public static final class Chit.Settable extends Object implements Chit, Disposable
Chit.Settable| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
boolean |
isDisposed()
Returns whether the resource is disposed.
|
void |
runWhenDisposed(Runnable whenDisposed)
Adds a listener which will run when the given element is disposed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalreadyDisposed, guard, settablepublic void dispose()
dispose in interface Disposablepublic boolean isDisposed()
ChitisDisposed in interface ChitisDisposed in interface Disposablepublic void runWhenDisposed(Runnable whenDisposed)
ChitChit.isDisposed()), the runnable will be executed immediately.runWhenDisposed in interface Chit