ps-promise 0.1.0-16

Promise-like owned futures
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{Promise, PromiseRejection};

impl<T, E> Default for Promise<T, E>
where
    T: Default + Unpin,
    E: PromiseRejection,
{
    fn default() -> Self {
        Self::Resolved(T::default())
    }
}