Sha256: 6162681c8b31c35ea6d88d09187b77e1fcc96ca56a1304b5cb39b4051f601f3d

Contents?: true

Size: 388 Bytes

Versions: 8

Compression:

Stored size: 388 Bytes

Contents

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

#[cfg(tokio_wasm_not_wasi)]
use wasm_bindgen_test::wasm_bindgen_test as maybe_tokio_test;

#[cfg(not(tokio_wasm_not_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

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-9.0.1 ./ext/cargo-vendor/tokio-1.28.1/tests/macros_pin.rs
wasmtime-8.0.0 ./ext/cargo-vendor/tokio-1.27.0/tests/macros_pin.rs
wasmtime-7.0.0 ./ext/cargo-vendor/tokio-1.27.0/tests/macros_pin.rs
wasmtime-6.0.1 ./ext/cargo-vendor/tokio-1.25.0/tests/macros_pin.rs
wasmtime-6.0.0 ./ext/cargo-vendor/tokio-1.25.0/tests/macros_pin.rs
wasmtime-5.0.0 ./ext/cargo-vendor/tokio-1.24.2/tests/macros_pin.rs
wasmtime-0.4.1 ./ext/cargo-vendor/tokio-1.23.0/tests/macros_pin.rs
wasmtime-0.4.0 ./ext/cargo-vendor/tokio-1.23.0/tests/macros_pin.rs