zigar.thread.setParentId(id) - chung-leong/zigar GitHub Wiki
Set the id of the thread where calls to JavaScript functions are directed. Use of this function is necessary only in situations where multiple JavaScript instances are using the name Zig module.
This function does nothing when the target platform is WebAssembly.
Arguments:
id
:std.Thread.Id
Id of the thread where the JavaScript engine is running. Can be obtained by callingstd.Thread.getCurrentId()
.
Return value:
void