wrap

Function wrap 

Source
pub fn wrap<T, V>(callback: T) -> Promise<T, V>
where T: FutureType<V>,
Expand description

Wrap a type that implements FutureType into a drop-safe promise