Enqueued Job
Base abstraction for single-use model that tracks the state of a queue-able job. Once completed, either successfully or by cancellation/error, the EnqueuedJob is dead and should be discarded.
Heavily inspired by kotlinx.coroutines.Job
See also
Types
Dynamic configuration for implementors of EnqueuedJob in order to modify how it wants to handle interactions while in a state of Executing.
Properties
The ExecutionPolicy of this job.
If state is State.Cancelled
An intermediate "state" indicating that completion, either by success or error/cancellation, is underway.
The current State of the job.
Functions
Cancel the job.
Register a handle to be invoked when this EnqueuedJob completes, either successfully or by cancellation/error. If handle is already registered, Disposable.noOp is returned.