mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
docs: transition_to_idle doesn't return boolean (#6320)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user