Type Alias JobHandlerFn

    JobHandlerFn: (
        call: JobCall & { signal: AbortSignal },
    ) => Promise<unknown> | unknown

    A JS worker handler — async function invoked with the decoded JobCall. Throw to fail / retry; throw a CancelError / RetryError (from @eddyq/queue) for directives.

    Type Declaration

      • (call: JobCall & { signal: AbortSignal }): Promise<unknown> | unknown
      • Parameters

        • call: JobCall & { signal: AbortSignal }

        Returns Promise<unknown> | unknown