IWorkerPool.run<TInput, TOutput>(): Promise<TOutput>
Runs a task on a pool worker for the given task module, creating the pool lazily on first use.
input: TInput
Structured-clonable task input
optional
options: WorkerRunOptions
Per-call options
Promise<TOutput>
The task's structured-clonable output