Module assemble_core::work_queue
source · Expand description
The work queue allows for submission and completion of work.
There are two ways of interacting with the worker executor.
- By directly interfacing with
WorkerExecutor
instance. - Using a
WorkerQueue
, which allows for easy handling of multiple requests.
Structs
Allows for only submissed of a certain type into the worker queue.
A Work Token is a single unit of work done within the Work Queue. Can be built using a WorkTokenBuilder
Builds
WorkToken
s for the work queue. Both on_start and on_complete are optional.A worker queue allows for the submission of work to be done in parallel.
A worker queue is a way of submitting work to a
WorkerExecutor
.