Trait web_thread::web::ScopedJoinHandleExt

source ·
pub trait ScopedJoinHandleExt<'scope, T> {
    // Required method
    fn join_async<'handle>(
        &'handle mut self,
    ) -> ScopedJoinHandleFuture<'handle, 'scope, T> ;
}
Available on Web only.
Expand description

Web-specific extension for web_thread::ScopedJoinHandle.

Required Methods§

source

fn join_async<'handle>( &'handle mut self, ) -> ScopedJoinHandleFuture<'handle, 'scope, T>

Async version of ScopedJoinHandle::join().

§Panics
§Example
use web_thread::web::{self, ScopedJoinHandleExt};

web::scope_async(|scope| async {
	scope.spawn(|| ()).join_async().await.unwrap();
}).await;

Implementors§

source§

impl<'scope, T> ScopedJoinHandleExt<'scope, T> for ScopedJoinHandle<'scope, T>