maitake-sync 0.2.2

No-std async synchronization primitives from Maitake
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;
use crate::util::test::{assert_future, NopRawMutex};

#[cfg(all(not(loom), feature = "alloc"))]
mod alloc_tests;

#[cfg(any(loom, feature = "alloc"))]
mod loom;

#[test]
fn wait_future_is_future() {
    // WaitQueue with default raw mutex
    assert_future::<Wait<'_>>();
    // WaitQueue with overridden raw mutex
    assert_future::<Wait<'_, NopRawMutex>>();
}