Tela SDK for JavaScript
    Preparing search index...

    Event types emitted by Task during its lifecycle.

    type TaskEvents<TOutput = unknown> = {
        error: TaskFailedError;
        poll: WithRequestId<TaskDefinition<TOutput>>;
        statusChange: TaskStatus;
        success: TOutput;
    }

    Type Parameters

    • TOutput = unknown

      The output type.

    Index

    Properties

    Emitted when task fails with the error object.

    Emitted during polling with current status and output. Includes requestId from the polling request.

    statusChange: TaskStatus

    Emitted when task status transitions to a new state.

    success: TOutput

    Emitted when task completes successfully with the final result.