[−][src]Trait futures_polling::FuturePollingExt
Provided methods
fn polling(self) -> Polling<Self>ⓘ where
Self: Sized,
Self: Sized,
Returns [Polling::Pending(self)
], consuming self
.
Example
use core::task::Poll; use futures_polling::FuturePollingExt; let mut polling = async { 42 }.polling(); assert_eq!(polling.poll_once().await, Poll::Ready(42));