Function web_thread::park_timeout_ms
source · pub fn park_timeout_ms(ms: u32)
👎Deprecated: replaced by
web_thread::park_timeout
Expand description
See std::thread::park_timeout_ms()
.
§Notes
Unlike std::thread::park_timeout_ms()
, when using the atomics target
feature, this will not panic on the main thread, worklet or any other
unsupported thread type. However, on supported thread types, this will
function correctly even without the atomics target feature.
Keep in mind that this call will do nothing unless the calling thread
supports blocking, see
web::has_block_support()
.