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

Version Path
wasmtime-14.0.1 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs
wasmtime-14.0.0 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs
wasmtime-13.0.0 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs
wasmtime-12.0.1 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs
wasmtime-12.0.0 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs