expose
Expose a function or a module (an object whose values are functions) to the main thread. Must be called exactly once in every worker thread to signal its API to the main thread.
§
expose(exposed: WorkerFunction | WorkerModule<any>): void
[src]§Parameters
§
exposed: WorkerFunction | WorkerModule<any>
[src]Function or object whose values are functions