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