diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 99707b1dad5..78a0114f48e 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -310,7 +310,7 @@ //! [`event_interval`]: crate::runtime::Builder::event_interval //! [`disable_lifo_slot`]: crate::runtime::Builder::disable_lifo_slot //! [the lifo slot optimization]: crate::runtime::Builder::disable_lifo_slot -//! [coop budget]: crate::task#cooperative-scheduling +//! [coop budget]: crate::task::coop#cooperative-scheduling //! [`worker_mean_poll_time`]: crate::runtime::RuntimeMetrics::worker_mean_poll_time // At the top due to macros diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs index ddf99644270..3a6c8b8270c 100644 --- a/tokio/src/sync/mod.rs +++ b/tokio/src/sync/mod.rs @@ -439,7 +439,7 @@ //! or even use them from non-Tokio runtimes. //! //! When used in a Tokio runtime, the synchronization primitives participate in -//! [cooperative scheduling](crate::task#cooperative-scheduling) to avoid +//! [cooperative scheduling](crate::task::coop#cooperative-scheduling) to avoid //! starvation. This feature does not apply when used from non-Tokio runtimes. //! //! As an exception, methods ending in `_timeout` are not runtime agnostic diff --git a/tokio/src/sync/mpsc/mod.rs b/tokio/src/sync/mpsc/mod.rs index a90a35d366b..3df612ca4f7 100644 --- a/tokio/src/sync/mpsc/mod.rs +++ b/tokio/src/sync/mpsc/mod.rs @@ -75,7 +75,7 @@ //! runtimes. //! //! When used in a Tokio runtime, it participates in -//! [cooperative scheduling](crate::task#cooperative-scheduling) to avoid +//! [cooperative scheduling](crate::task::coop#cooperative-scheduling) to avoid //! starvation. This feature does not apply when used from non-Tokio runtimes. //! //! As an exception, methods ending in `_timeout` are not runtime agnostic diff --git a/tokio/src/task/join_set.rs b/tokio/src/task/join_set.rs index ed2777ccf86..a156719a067 100644 --- a/tokio/src/task/join_set.rs +++ b/tokio/src/task/join_set.rs @@ -482,7 +482,7 @@ impl JoinSet { /// Note that this method may return `Poll::Pending` even if one of the tasks has completed. /// This can happen if the [coop budget] is reached. /// - /// [coop budget]: crate::task#cooperative-scheduling + /// [coop budget]: crate::task::coop#cooperative-scheduling pub fn poll_join_next(&mut self, cx: &mut Context<'_>) -> Poll>> { // The call to `pop_notified` moves the entry to the `idle` list. It is moved back to // the `notified` list if the waker is notified in the `poll` call below. @@ -537,7 +537,7 @@ impl JoinSet { /// Note that this method may return `Poll::Pending` even if one of the tasks has completed. /// This can happen if the [coop budget] is reached. /// - /// [coop budget]: crate::task#cooperative-scheduling + /// [coop budget]: crate::task::coop#cooperative-scheduling /// [task ID]: crate::task::Id pub fn poll_join_next_with_id( &mut self,