Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah-Kennedy committed Mar 6, 2025
1 parent 89d4c94 commit b6a2f24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tokio/src/runtime/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ mod unowned_wrapper {
T: std::future::Future + Send + 'static,
T::Output: Send + 'static,
{
#[cfg(tokio_unstable)]
let (task, handle) = crate::runtime::task::unowned(task, NoopSchedule, Id::next(), None);
#[cfg(not(tokio_unstable))]
let (task, handle) = crate::runtime::task::unowned(task, NoopSchedule, Id::next());
(task.into_notified(), handle)
}
Expand Down

0 comments on commit b6a2f24

Please sign in to comment.