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-28.0.0 ./ext/cargo-vendor/futures-0.3.31/tests/future_fuse.rs
wasmtime-27.0.0 ./ext/cargo-vendor/futures-0.3.31/tests/future_fuse.rs
wasmtime-26.0.0 ./ext/cargo-vendor/futures-0.3.31/tests/future_fuse.rs
wasmtime-25.0.2 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-25.0.1 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-25.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-24.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-23.0.2 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-22.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-21.0.1 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-20.0.2 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-20.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-18.0.3 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-17.0.1 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-17.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-16.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-15.0.1 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-15.0.0 ./ext/cargo-vendor/futures-0.3.30/tests/future_fuse.rs
wasmtime-14.0.4 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs
wasmtime-14.0.3 ./ext/cargo-vendor/futures-0.3.28/tests/future_fuse.rs