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

Function terminate

src/master/thread.ts:22–24  ·  view source on GitHub ↗

Terminate a thread. Remember to terminate every thread when you are done using it.

(thread: ThreadT)

Source from the content-addressed store, hash-verified

20 },
21 /** Terminate a thread. Remember to terminate every thread when you are done using it. */
22 terminate<ThreadT extends ThreadType>(thread: ThreadT) {
23 return thread[$terminate]()
24 }
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected