2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Don't spawn_local without tokio-unstable

This commit is contained in:
asonix 2024-03-11 13:20:26 -05:00
parent b7f508207f
commit 9178e3ef9f

View file

@ -125,7 +125,7 @@ where
.spawn(future) .spawn(future)
.expect("Failed to spawn"); .expect("Failed to spawn");
#[cfg(not(tokio_unstable))] #[cfg(not(tokio_unstable))]
let handle = tokio::task::spawn_local(future); let handle = tokio::task::spawn(future);
drop(guard); drop(guard);
handle handle