I'm looking for a crate that does what gloo_timers does, and works on both native rust and wasm. Any ideas if something like that exists?
I've had a rough time to find any implementations like that which work in native rust. Most seem to be overly complicated sleep functions.
I mean, this more or less has to be implemented by calling sleep in a new thread. You could make something that waits for many timeouts in one thread, but you can't really run the closures in that thread without rising some closure taking a really long time and making other timeouts not fire in time.