* Queue a task and return a promise that resolves once the task has been dequeued, * started and finished. * * @param task An async function that takes a thread instance and invokes it.
(task: TaskRunFunction<ThreadType, Return>)
| 88 | * @param task An async function that takes a thread instance and invokes it. |
| 89 | */ |
| 90 | queue<Return>(task: TaskRunFunction<ThreadType, Return>): QueuedTask<ThreadType, Return> |
| 91 | |
| 92 | /** |
| 93 | * Terminate all pool threads. |