Function web_thread::scope
source · pub fn scope<'env, F, T>(f: F) -> T
Expand description
See std::thread::scope()
.
§Notes
Keep in mind that this will enter a spinloop until all threads are joined if
blocking is not supported on this thread, see
web::has_block_support()
.
Alternatively consider using
web::scope_async()
.