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

Method newThread

src/thread.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 public newThread(): Thread {
44 const address = this.lua.lua_newthread(this.address)
45 if (!address) {
46 throw new Error('lua_newthread returned a null pointer')
47 }
48 return new Thread(this.lua, this.typeExtensions, address, this.parent || this)
49 }
50
51 public resetThread(): void {
52 this.assertOk(this.lua.lua_resetthread(this.address))

Callers 5

engine.test.jsFile · 0.80
promises.test.jsFile · 0.80
callByteCodeMethod · 0.80
constructorMethod · 0.80
jsFuncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected