Sha256: bb63141f1486e755d0cdea1d93e302ad864a2186aa5287f909a0b3a922e82065
Contents?: true
Size: 364 Bytes
Versions: 25
Compression:
Stored size: 364 Bytes
Contents
use futures::future::{self, FutureExt}; use futures::task::Context; use futures_test::task::panic_waker; #[test] fn fuse() { let mut future = future::ready::<i32>(2).fuse(); let waker = panic_waker(); let mut cx = Context::from_waker(&waker); assert!(future.poll_unpin(&mut cx).is_ready()); assert!(future.poll_unpin(&mut cx).is_pending()); }
Version data entries
25 entries across 25 versions & 1 rubygems