Interface WorkerResult<R>

interface WorkerResult<R = any> {
    id: string;
    result: R;
    error?: Error;
    duration: number;
}

Type Parameters

  • R = any

Properties

id: string
result: R
error?: Error
duration: number