matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

timeout function for Futures does not elapse on WASM32

Open docweirdo opened this issue 1 year ago • 0 comments

After implementing a generic timeout function for futures in matrix-sdk-common with #888, the unit test with_timeout fails for target architecture wasm32.

Instead of using tokio::time::timeout like all other architectures, the timeout function uses the crate wasm_timer for wasm32. After conferring with @poljar, I have disabled the unit test for wasm32, but the issue of course remains.

docweirdo avatar Aug 01 '22 13:08 docweirdo