Skip to main content

ps_promise/implementations/
default.rs

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