Class Worker
Constructors
Worker(ProviderCollection)
Declaration
new Worker(providers: ProviderCollection)
Parameters
Methods
addOperation(OperationFilter, OperationHandler)
Declaration
function addOperation(operationFilter: OperationFilter, handler: OperationHandler)
Parameters
Type |
Name |
Description |
OperationFilter |
operationFilter |
|
OperationHandler |
handler |
|
Returns
addOperation(string, OperationHandler)
Declaration
function addOperation(operationName: string, handler: OperationHandler)
Parameters
Type |
Name |
Description |
string |
operationName |
|
OperationHandler |
handler |
|
Returns
addOperation(WorkerOperation)
Declaration
function addOperation(operation: WorkerOperation)
Parameters
Returns
doWork(WorkerRequest, any)
Declaration
function doWork(request: WorkerRequest, ctx?: any)
Parameters
Returns
Type |
Description |
Promise<void> |
|