Skip to content

Commit 8c47efc

Browse files
committed
fix: comment
1 parent 4e72f9a commit 8c47efc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Std/Sync/CancellationToken.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def isCancelled (x : CancellationToken) : BaseIO Bool := do
101101
return st.cancelled
102102

103103
/--
104-
Wait for cancellation. Returns a task that completes with `true` when cancelled,
105-
or `false` if unregistered normally. If already cancelled, immediately returns `true`.
104+
Wait for cancellation. Returns a task that completes when cancelled,
106105
-/
107106
def wait (x : CancellationToken) : IO (AsyncTask Unit) :=
108107
x.state.atomically do

0 commit comments

Comments
 (0)