Protocols
The following protocols are available globally.
-
Defines a job which can be enqueued.
See moreDeclaration
Swift
public protocol QueueJob: Codable
-
Defines an object which can process a QueueJob of a given type. A JobProcessor instance can be assigned to any JobQueue of the same underlying QueueJob type.
See moreDeclaration
Swift
public protocol JobProcessor: class
-
Defines a generic strategy for how a JobQueue should handle a job which failed to process.
Attention
This class must be inherited.Declaration
Swift
public protocol JobRetryStrategy