Protocol
AsyncJob
A task that can be queued for future execution.
protocol AsyncJob : Job
Topics
Associated Types
associatedtype PayloadThe data associated with a job
Instance Methods
func dequeue(QueueContext, Self.Payload) async throwsCalled when it’s this Job’s turn to be dequeued.func error(QueueContext, any Error, Self.Payload) async throwsCalled when there is an error at any stage of the Job’s execution.