public interface DisposeNotifier
WeakMap
.WeakMap
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(DisposeListener listener)
Adds a dispose listener, to be notified when this object is disposed.
|
void addDisposeListener(DisposeListener listener)
It is unspecified what happens when the same listener is added multiple times.
It is unspecified exactly when the notifyDispose
callback
is fired: immediately before the notifier is disposed, while it is in the
process of disposing, or some time after it got disposed. But even if
adding a listener to an already disposed notifer, the listener must
eventually receive a notifyDispose
callback.
listener
- a dispose listener, to be notified when this object is
disposed; must not be null