Skip to content

Commit 45586b0

Browse files
committed
Mention the callback option alongside task.wait
1 parent 6ab2bc9 commit 45586b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

design/mvp/Explainer.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,9 +1495,10 @@ of a stream or future that has an outstanding "`BLOCKED`" read or write. If
14951495
cancellation finished eagerly, the return value is the number of elements read
14961496
or written into the given buffer (`0` or `1` for a `future`). If cancellation
14971497
blocks, the return value is the sentinel "`BLOCKED`" value and the caller must
1498-
`task.wait` for a `{STREAM,FUTURE}_{READ,WRITE}` event to indicate the
1499-
completion of the `read` or `write`. (See [`canon_stream_cancel_read`] in the
1500-
Canonical ABI explainer for details.)
1498+
`task.wait` (or, if using `callback`, return to the event loop) to receive a
1499+
`{STREAM,FUTURE}_{READ,WRITE}` event to indicate the completion of the `read`
1500+
or `write`. (See [`canon_stream_cancel_read`] in the Canonical ABI explainer
1501+
for details.)
15011502

15021503
The `waitable.drop` built-in has type `[i32] -> []` and removes the indicated
15031504
[subtask](Async.md#subtask-and-supertask) or [stream or future](Async.md#streams-and-futures)

0 commit comments

Comments
 (0)