Skip to content

Commit

Permalink
docs: transition_to_idle doesn't return boolean (#6320)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto authored Feb 2, 2024
1 parent eaf81ed commit cb197de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tokio/src/runtime/task/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ impl State {

/// Transitions the task from `Running` -> `Idle`.
///
/// Returns `true` if the transition to `Idle` is successful, `false` otherwise.
/// The transition to `Idle` fails if the task has been flagged to be
/// cancelled.
pub(super) fn transition_to_idle(&self) -> TransitionToIdle {
Expand Down

0 comments on commit cb197de

Please sign in to comment.