Tasker::Future(R)
Inherits Future::Compute < Reference < Object
Constructors
new(block : -> R)
SourceInstance methods
complete
Records the terminal state once the callback has finished. The task invokes
this under its own lock — the same lock #cancel holds — so completion and
cancellation are serialised without this class needing a mutex of its own.
Completion never overwrites a cancel, so state == Canceled reliably means
"the user cancelled; do not reschedule".