|Modifier and Type
|Method and Description
Cancel or dispose the underlying task or resource.
Optionally return true when the resource or task is disposed.
public boolean isDisposed()
Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.