Setu-TS
    Preparing search index...

    Interface QueueProcessorDefinition<T>

    The declarative form of one IQueue.process() call — the entry an application writes instead of calling process() imperatively after start().

    0.3.0

    interface QueueProcessorDefinition<T = unknown> {
        name: string;
        options?: ProcessOptions;
        processor(job: IJob<T>): void | Promise<void>;
    }

    Type Parameters

    • T = unknown
    Index
    name: string

    The job name this processor handles (the process() name argument).

    options?: ProcessOptions

    Per-name configuration, exactly as the imperative process() accepts.