Skip to main content

Module worker

Module worker 

Source

Structs§

CancelHandle
CancelToken
Completion
Failure
PreparedWork
A registered work envelope without an eagerly spawned thread. Retain a cancellation handle until it runs or is explicitly cancelled.
Ticket
WorkerId
WorkerIds

Enums§

CancelReason
FailureKind
Load
Outcome

Functions§

prepare
spawn
spawn_effect
Cancellation requests stop resources promptly but do not replace a mutation receipt. The work closure always runs and must check its token before effects, allowing it to return exact per-item cancellations even before native launch. Cleanup failure preserves a successful observed value in Failed.partial.
spawn_scoped
Scoped readers use the same envelope, and their scope joins them before a provider can release physical ownership or start its successor.