Module worker

Source
Expand description

Represents the utils for building workers.

Structs§

Context
Stores the Workers context
Ready
A worker that is ready for running
Runnable
A Runnable represents a unit of work that manages a worker’s lifecycle and execution flow.
Tracked
A future tracked by the worker
Worker
Represents a generic Worker that can be in many different states
WorkerId
A worker name wrapper usually used by Worker builder

Enums§

Event
Events emitted by a worker
WorkerError
Possible errors that can occur when starting a worker.

Type Aliases§

EventHandler
An event handler for Worker