rust/library
Matthias Krüger 25e3b66410
Rollup merge of #129754 - alexcrichton:fix-wasi-long-sleep, r=workingjubilee
wasi: Fix sleeping for `Duration::MAX`

This commit fixes an assert in the WASI-specific implementation of thread sleep to ensure that sleeping for a very large period of time blocks instead of panicking. This can come up when testing programs that sleep "forever", for example.

I'll note that I haven't included a test for this since it's sort of difficult to test. I've tested this locally though that long sleeps do indeed block and short sleeps still only sleep for a short amount of time.
2024-08-31 10:08:59 +02:00
..
2024-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-07-26 13:26:33 +01:00
2024-08-21 00:20:27 -07:00
2024-08-29 08:38:19 +08:00