MCPcopy Create free account
hub / github.com/ceifa/wasmoon / close

Method close

src/thread.ts:309–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 }
308
309 public close(): void {
310 if (this.isClosed()) {
311 return
312 }
313
314 if (this.hookFunctionPointer) {
315 this.lua.module.removeFunction(this.hookFunctionPointer)
316 }
317
318 this.closed = true
319 }
320
321 // Set to > 0 to enable, otherwise disable.
322 public setTimeout(timeout: number | undefined): void {

Callers

nothing calls this directly

Calls 1

isClosedMethod · 0.95

Tested by

no test coverage detected