Protocol
Job
A task that can be queued for future execution.
protocol Job : AnyJob
Topics
Associated Types
PayloadThe data associated with a job
Instance Methods
dequeue(_:_:)Called when it’s this Job’s turn to be dequeued.error(_:_:_:)Called when there is an error at any stage of the Job’s execution.nextRetryIn(attempt:)Called when there was an error and the job will be retried.
Type Methods
parsePayload(_:)Deserialize an array of bytes into a typed payload. WhenPayloadisCodable, this method will default to decoding from JSON.serializePayload(_:)Serialize a typed payload to an array of bytes. WhenPayloadisCodable, this method will default to encoding to JSON.
Relationships
Inherits From
AnyJobSwift.SendableSwift.SendableMetatype