1 2 3 4 5 6 7 8 9 10 11
use crate::Promise; impl<T, E> Promise<T, E> { /// Polls the promise's inner future using a no-op waker. /// Returns `true` if the promise is now settled. pub fn poll_settled_sync(&mut self) -> bool { self.poll_sync(); self.is_settled() } }