Sha256: f8fe8ade470196dc09b061b0cdd71ef25e114a201d5eb500e0f8232b436012cb

Contents?: true

Size: 454 Bytes

Versions: 30

Compression:

Stored size: 454 Bytes

Contents

#![cfg(feature = "macros")]

#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
use wasm_bindgen_test::wasm_bindgen_test as maybe_tokio_test;

#[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))]
use tokio::test as maybe_tokio_test;

async fn one() {}
async fn two() {}

#[maybe_tokio_test]
async fn multi_pin() {
    tokio::pin! {
        let f1 = one();
        let f2 = two();
    }

    (&mut f1).await;
    (&mut f2).await;
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/tokio-1.43.0/tests/macros_pin.rs
wasmtime-28.0.0 ./ext/cargo-vendor/tokio-1.43.0/tests/macros_pin.rs
wasmtime-27.0.0 ./ext/cargo-vendor/tokio-1.41.1/tests/macros_pin.rs
wasmtime-26.0.0 ./ext/cargo-vendor/tokio-1.41.0/tests/macros_pin.rs
wasmtime-25.0.2 ./ext/cargo-vendor/tokio-1.40.0/tests/macros_pin.rs
wasmtime-25.0.1 ./ext/cargo-vendor/tokio-1.39.3/tests/macros_pin.rs
wasmtime-25.0.0 ./ext/cargo-vendor/tokio-1.39.3/tests/macros_pin.rs
wasmtime-24.0.0 ./ext/cargo-vendor/tokio-1.39.3/tests/macros_pin.rs
wasmtime-23.0.2 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-22.0.0 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-21.0.1 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-20.0.2 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-20.0.0 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-18.0.3 ./ext/cargo-vendor/tokio-1.36.0/tests/macros_pin.rs
wasmtime-17.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/macros_pin.rs
wasmtime-17.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/macros_pin.rs
wasmtime-16.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/macros_pin.rs
wasmtime-15.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/macros_pin.rs
wasmtime-15.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/macros_pin.rs
wasmtime-14.0.4 ./ext/cargo-vendor/tokio-1.33.0/tests/macros_pin.rs