You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Manual/IO/Async.lean
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1073,7 +1073,7 @@ def unregisterErrorCleansUp : Async Unit := do
1073
1073
There are two varieties of timer: _sleep timers_ allow a computation to wait one time for a given duration, while _interval timers_ provide an event repeatedly, separated by the duration.
1074
1074
Creating a timer does not start the countdown.
1075
1075
Timers begin running at the first call to {name}`Sleep.wait`, call to {name}`Interval.tick`, or the first selection in which they take part.
1076
-
When a sleep timer loses a {ref "selection-protocol-race"}[race], it restarts in its next selection.
1076
+
When a sleep timer loses a {ref "selector-protocol-race"}[race], it restarts in its next selection.
1077
1077
Stopping a timer with {name}`Sleep.stop` or {name}`Interval.stop` leaves any task that's awaiting the timer hanging forever.
0 commit comments