use std::task::Context;
use crate::Promise;
impl<T, E> Promise<T, E> {
/// Polls the promise's inner future if pending.
/// Returns `true` if the promise is still pending.
pub fn poll_pending(&mut self, cx: &mut Context<'_>) -> bool {
self.poll(cx);
self.is_pending()
}
}