1 2 3 4 5 6 7 8 9 10 11
use crate::{Promise, PromiseRejection}; impl<T, E> Promise<T, E> where T: Unpin, E: PromiseRejection, { pub const fn resolve(value: T) -> Self { Self::Resolved(value) } }