Closed jdmcd closed 3 years ago
Adds AsyncJob which allows you to specify a job that has async body implementations:
AsyncJob
struct MyJobPayload: Content { let name: String } struct MyAsyncJob: AsyncJob { func dequeue(context: QueueContext, payload: MyJobPayload) async throws { print(payload.name) } func error(context: QueueContext, error: Error, payload: MyJobPayload) async throws { print(error) } } // In configure.swift app.queues.add(MyAsyncJob())
These changes are now available in 1.7.0
Adds
AsyncJob
which allows you to specify a job that has async body implementations: