Class IOConnection.Cancellable
java.lang.Object
com.github.tonivade.purefun.monad.IOConnection.Cancellable
- All Implemented Interfaces:
IOConnection
- Enclosing interface:
IOConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.monad.IOConnection
IOConnection.Cancellable, IOConnection.Uncancellable -
Field Summary
FieldsFields inherited from interface com.github.tonivade.purefun.monad.IOConnection
UNCANCELLABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidbooleanvoidsetCancelToken(Kind<IO<?>, Unit> cancel) updateState(Operator1<StateIO> update)
-
Field Details
-
cancelToken
-
state
-
-
Constructor Details
-
Cancellable
private Cancellable()
-
-
Method Details
-
isCancellable
public boolean isCancellable()- Specified by:
isCancellablein interfaceIOConnection
-
setCancelToken
- Specified by:
setCancelTokenin interfaceIOConnection
-
cancelNow
public void cancelNow()- Specified by:
cancelNowin interfaceIOConnection
-
cancel
public void cancel()- Specified by:
cancelin interfaceIOConnection
-
updateState
- Specified by:
updateStatein interfaceIOConnection
-