Type Alias DoneEventHandler<Type>

DoneEventHandler: (uuid: string, result: Result<Type>, error?: Multi) => void

Event handler for the done event, emitted when a job has ended, either due to completion or failure.

Type Parameters

  • Type extends string

    The type of the job

Type declaration

    • (uuid: string, result: Result<Type>, error?: Multi): void
    • Parameters

      • uuid: string

        The unique identifier of the job

      • result: Result<Type>

        The result of the job

      • Optionalerror: Multi

        The error of the job, if any

      Returns void