Skip to main content

IntoSendFuture

Trait IntoSendFuture 

Source
pub trait IntoSendFuture {
    type Output;

    // Required method
    fn into_send(self) -> SendFuture<Self> 
       where Self: Sized;
}
Expand description

Trait for SendFuture. Implemented for any type that implements Future.

let fut = JsFuture::from(promise).into_send();
fut.await

Required Associated Types§

Required Methods§

Source

fn into_send(self) -> SendFuture<Self>
where Self: Sized,

Implementors§

Source§

impl<F, T> IntoSendFuture for F
where F: Future<Output = T>,