Interface AcDbWorkerResponse<TOutput>

Response posted back to the main thread after a worker task completes.

interface AcDbWorkerResponse<TOutput = unknown> {
    data?: TOutput;
    error?: string;
    errorCode?: AcDbWorkerErrorCode;
    id: string;
    success: boolean;
}

Type Parameters

  • TOutput = unknown

Properties

data?: TOutput

Task result when success is true.

error?: string

Human-readable error message when success is false.

Structured error category when success is false.

id: string

Task identifier matching the originating AcDbWorkerMessage.id.

success: boolean

Whether the task completed without throwing.