Function wxMakeWorkerGlobalEnd

Source
wxMakeWorkerGlobalEnd(
    ...args: [onRecv: WxOnRecvFn, option?: WxEndOptions],
): Promise<WxResult<WxEnd>>

Create an WxEnd bound to the global WorkerGlobalScope.

remarks

Calling this when globalThis is not a WorkerGlobalScope will result in an error. Calling this function multiple times will return the same promise - even if previous call returned an error.

Internal API - See public!wxWorkerGlobal