ps-promise 0.1.0-17

Promise-like owned futures
Documentation
1
2
3
4
5
6
7
8
9
use crate::Promise;

impl<T, E> Promise<T, E> {
    /// Returns `true` if the promise is no longer pending: it has settled,
    /// or its result has been consumed.
    pub const fn is_settled(&self) -> bool {
        !self.is_pending()
    }
}