WorkerPoolComponent.call method
WorkerPoolComponent › call
Calls a method on the least busy worker.Signature:
call(method: TMethod, callArguments: Parameters<TApi[TMethod]>, options?: WorkerComponentCallOptions | undefined): Promise<WorkerMethodResult<TApi, TMethod>>Parameters:
| Parameter | Type | Description |
|---|---|---|
| method | TMethod | The method name. |
| callArguments | Parameters<TApi[TMethod]> | The method's arguments. |
| options? | WorkerComponentCallOptions | undefined | The call options. |
Returns: Promise<WorkerMethodResult<TApi, TMethod>> — The method's result.