You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the global() function of js_sys to get the global object, and then dyn_into that into a DedicatedWorkerGlobalScope (see this issue discussing the problem). Note that, due to the way things are currently instrumented, you won't be able to post messages to the worker since the messaging API is already utilized by wasm_thread. Some additional code would need to be added in this crate to allow for posting custom messages.
Once I'm inside of a thread, how do I get that thread's
DedicatedWorkerGlobalScope
?The text was updated successfully, but these errors were encountered: