We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dda0d3 commit e08014aCopy full SHA for e08014a
src/runtime.rs
@@ -8,6 +8,10 @@ cfg_if::cfg_if! {
8
pub fn spawn(f: impl Future<Output = ()> + Send + 'static) -> JoinHandle<()> {
9
tokio::spawn(f)
10
}
11
+ } else if #[cfg(all(feature = "async-std-comp", not(feature = "tokio-comp")))] {
12
+ pub fn spawn(f: impl Future<Output = ()> + Send + 'static) -> JoinHandle<()> {
13
+ async_std::task::spawn(f)
14
+ }
15
} else {
16
compile_error!("tokio-comp or async-std-comp features required");
17
0 commit comments