From 9178e3ef9fc19f5123b9b66d660acd2524695c4a Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 11 Mar 2024 13:20:26 -0500 Subject: [PATCH] Don't spawn_local without tokio-unstable --- src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.rs b/src/sync.rs index 590c153..008e924 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -125,7 +125,7 @@ where .spawn(future) .expect("Failed to spawn"); #[cfg(not(tokio_unstable))] - let handle = tokio::task::spawn_local(future); + let handle = tokio::task::spawn(future); drop(guard); handle