@FunctionalInterface public interface Disposable extends Cancellation
Call to the dispose method is/should be idempotent.
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Cancel or dispose the underlying task or resource.
|
default boolean |
isDisposed()
Optionally return true when the resource or task is disposed.
|
void dispose()
Call to this method is/should be idempotent.
dispose in interface Cancellationdefault boolean isDisposed()