package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Jan 21, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package worker provides the typego:worker module for multi-threading.
Register injects the typego:worker module into the runtime.
RegisterSelf registers the 'self' object in a worker thread.
type Handle interface {
PostMessage(msg goja.Value)
Terminate()
}
Handle represents a running worker.
Spawner is a function that creates a new worker.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.