Modifier and Type | Method and Description |
---|---|
void |
Context.addListener(Context.CancellationListener cancellationListener,
Executor executor)
Add a listener that will be notified when the context becomes cancelled.
|
void |
Context.CancellableContext.addListener(Context.CancellationListener cancellationListener,
Executor executor) |
void |
Context.removeListener(Context.CancellationListener cancellationListener)
Remove a
Context.CancellationListener . |
void |
Context.CancellableContext.removeListener(Context.CancellationListener cancellationListener) |