Type alias SandboxedJobProcessor<T, R>
SandboxedJobProcessor<T, R>: ((job) => R | PromiseLike<R>) | ((job,
callback) => void) Type declaration
- (job): R | PromiseLike<R>
Returns R | PromiseLike<R>
Type declaration
- (job, callback): void
Parameters
- job: SandboxedJob<T, R>
- callback: ((error, result) => void)
- (error, result): void
Returns void
Returns void
See
https://docs.bullmq.io/guide/workers/sandboxed-processors