Is the official guideline to not use any std::thread
in wasm32-wasi at all as it's considered unstable so far?
I'm asking because I'm pretty sure std::thread::sleep()
used to work but some months ago now it panics because thread::sleep(): unexpected result of poll_oneoff
.
It probably didn't used to work as I see the file hasn't been touched in a while. Unless something changed in the VMs impls
sleep is weird in that it can probably work off-the-web but probably won't work on the web b/c the main thread can't sleep. Otherwise though std::thread
, even on wasm32-wasi, can't spawn new threads
Last updated: Dec 23 2024 at 13:07 UTC