Skip to content

Commit

Permalink
docs: corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
evdokimovs committed Dec 30, 2024
1 parent 1b91511 commit 1d6dc13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/dart/executor/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ pub struct Task {
}

impl ArcWake for Task {
/// Calls the [`task_wake()`] function by the provided reference if this
/// Calls the `task_wake()` function by the provided reference if this
/// [`Task`] s incomplete and there are no [`Poll::Pending`] awake requests
/// already.
///
/// [`Poll::Pending`]: task::Poll::Pending
fn wake_by_ref(arc_self: &Arc<Self>) {
if !arc_self.is_scheduled.swap(true, Ordering::AcqRel) {
task_wake(Arc::clone(arc_self));
Expand Down

0 comments on commit 1d6dc13

Please sign in to comment.