MCPcopy Index your code
hub / github.com/andywer/threads.js / queue

Method queue

src/master/pool.ts:90–90  ·  view source on GitHub ↗

* 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>)

Source from the content-addressed store, hash-verified

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.

Callers 2

testFunction · 0.65
pool.test.tsFile · 0.65

Implementers 1

WorkerPoolsrc/master/pool.ts

Calls

no outgoing calls

Tested by 1

testFunction · 0.52