bevy_async_task icon indicating copy to clipboard operation
bevy_async_task copied to clipboard

Timeouts don't work on wasm32

Open nuzzles opened this issue 1 year ago • 0 comments

G'ah. Just noticed timeouts are sticky on wasm32. An error around condvar.wait not supported, which is expected.

I'm not sure what solutions there could be for timeouts. Perhaps just turning off timeout methods on wasm32 is good enough.

We can add a .setTimeout to the browser to set a flag like "timed_out = true", but the only way for the task runner to be notified of the timeout is to spin-lock until it's timed out, which isn't asynchronous behavior. This will require some thought.

nuzzles avatar Jul 05 '24 20:07 nuzzles