Function shuttle::thread::park_timeout
source · pub fn park_timeout(_dur: Duration)
Expand description
Blocks unless or until the current thread’s token is made available or the specified duration has been reached (may wake spuriously).
Note that Shuttle does not model time, so this behaves identically to park
. In particular,
Shuttle does not assume that the timeout will ever fire, so if all threads are blocked in a call
to park_timeout
it will be treated as a deadlock.