1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "smol")]
mod smol;
#[cfg(feature = "tokio")]
mod tokio;

#[cfg(feature = "async-global-executor")]
mod async_global_executor;

#[cfg(test)]
mod tests {
    #[test]
    #[cfg(all(feature = "async-global-executor", feature = "smol"))]
    #[should_panic(expected = "multiple global spawners")]
    fn multiple_global() {
        spawns_core::spawn(async move {});
    }
}