Structure
QueueContext
The context for a queue.
struct QueueContext
Topics
Initializers
init(queueName: QueueName, configuration: QueuesConfiguration, application: Application, logger: Logger, on: any EventLoop)Creates a new JobContext
Instance Properties
let application: ApplicationThe application objectlet configuration: QueuesConfigurationThe configuration objectlet eventLoop: any EventLoopAn event loop to run the process onvar logger: LoggerThe logger objectvar queue: any QueueReturns the default jobQueuelet queueName: QueueNameThe name of the queue
Instance Methods
func queues(QueueName) -> any QueueReturns the specific jobQueuefor the given queue name
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype