Skip to content

Protocol

Job

A task that can be queued for future execution.
protocol Job : AnyJob

Topics

Associated Types

  • Payload
    The data associated with a job

Instance Methods

Type Methods

  • parsePayload(_:)
    Deserialize an array of bytes into a typed payload. When Payload is Codable, this method will default to decoding from JSON.
  • serializePayload(_:)
    Serialize a typed payload to an array of bytes. When Payload is Codable, this method will default to encoding to JSON.

Relationships

Inherits From

  • AnyJob
  • Swift.Sendable
  • Swift.SendableMetatype

Inherited By