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
I encountered a similar (I think?) issue with this code:
use wasm_timer::Delay;
...
let dur = Duration::from_millis(500);
Delay::new(dur).await;
leading to the not-terribly-helpful error in browser console:
Uncaught ReferenceError: __wbg_star0 is not defined
<anonymous> http://localhost:8080/pkg/bundle.js:761
bundle.js:761:1
<anonymous> http://localhost:8080/pkg/bundle.js:761
Wasm2wat gives this:
(import "env" "now" (func $now (type $t3)))
The function that triggers the horror is this one:
let _ = wasm_timer::Delay::new(std::time::Duration::from_secs(2)).await
The text was updated successfully, but these errors were encountered: