Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tokio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,15 @@ cfg_not_sync! {
mod sync;
}

pub mod task;
cfg_rt! {
pub mod task;
pub use task::spawn;
}

cfg_not_rt! {
pub(crate) mod task;
Copy link
Contributor Author

@mattiapitossi mattiapitossi Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inside the task module only crate coop is available under not_rt

}

cfg_time! {
pub mod time;
}
Expand Down