fynjs API
    Preparing search index...

    Type Alias ProcessCb<ItemT>

    ProcessCb: (
        item: ItemT,
        id?: number,
        signal?: AbortSignal,
    ) => Promise<unknown> | void

    Callback to process an item from the item queue

    Type Parameters

    • ItemT

    Type Declaration

      • (item: ItemT, id?: number, signal?: AbortSignal): Promise<unknown> | void
      • Parameters

        • item: ItemT

          item to process

        • Optionalid: number

          id number item queue uses to track this item

        • Optionalsignal: AbortSignal

          only with options.timeout, aborted when the item times out

        Returns Promise<unknown> | void