I’m having a quite specific problem with std::thread::sleep in wasm.
The problem is that instead of yielding to the render thread, it hangs the whole browser.
I don’t know if this is a bug in firefox (that I’m using), emscripten, rustc, or my code. Any help would be appreciated.
My expected behaviour is to yield for 1s then resume running (i.e. window.setTimeout in js)