Function web_thread::park
source · pub fn park()
Expand description
See std::thread::park()
.
§Notes
Unlike std::thread::park()
, 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()
.