Package com.tapkey.mobile.concurrent
Interface CancellationTokenRegistration
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface CancellationTokenRegistration extends Closeable
A registration returned byCancellationToken.register(Action, boolean)
. Can be used to cancel the registration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Cancels the registration to aCancellationToken
.
-
-
-
Method Detail
-
close
void close()
Cancels the registration to aCancellationToken
. Implementations of this method should not throw even if called multiple times or if the token is already in cancelled state.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-