Struct Promise
coroutines::promise
pub struct Promise<T: Send> { /* fields omitted */ }
impl<T: Send> Promise<T>
fn await<F: FnOnce(Promise<T>) + Send>(f: F) -> T
fn resolve(self, result: T)
impl<T: Send> Send for Promise<T>
impl<T: Send> Drop for Promise<T>
fn drop(&mut self)
Executes the destructor for this type. Read more