Closed jbms closed 4 months ago
This avoids the need to detect whether the module is running in the main browser thread or in a WebWorker.
This matches how setInterval and related functions are handled by the gloo-timers crate.
setInterval
See https://github.com/rustwasm/wasm-bindgen/discussions/3863
Confirmed with #486 that this is a fix for #484!
Is there any case where a context-specific fetch would be necessary?
This avoids the need to detect whether the module is running in the main browser thread or in a WebWorker.
This matches how
setInterval
and related functions are handled by the gloo-timers crate.See https://github.com/rustwasm/wasm-bindgen/discussions/3863