We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e72f9a commit 8c47efcCopy full SHA for 8c47efc
src/Std/Sync/CancellationToken.lean
@@ -101,8 +101,7 @@ def isCancelled (x : CancellationToken) : BaseIO Bool := do
101
return st.cancelled
102
103
/--
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`.
+Wait for cancellation. Returns a task that completes when cancelled,
106
-/
107
def wait (x : CancellationToken) : IO (AsyncTask Unit) :=
108
x.state.atomically do
0 commit comments