Skip to content

Commit b1d2e24

Browse files
author
Chris Adamson
committed
Docs: make explicit that stream closure uses steps
1 parent 5ce6d8f commit b1d2e24

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ import Swift
5757
/// To adapt this to use `async`-`await`, extend the `QuakeMonitor` to add a
5858
/// `quakes` property, of type `AsyncStream<Quake>`. In the getter for this
5959
/// property, return an `AsyncStream`, whose `build` closure -- called at
60-
/// runtime to create the stream -- does the following:
60+
/// runtime to create the stream -- uses the continuation to perform the
61+
/// following steps:
6162
///
6263
/// 1. Creates a `QuakeMonitor` instance.
6364
/// 2. Sets the monitor's `quakeHandler` property to a closure that receives

stdlib/public/Concurrency/AsyncThrowingStream.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ import Swift
6565
/// To adapt this to use `async`-`await`, extend the `QuakeMonitor` to add a
6666
/// `quakes` property, of type `AsyncThrowingStream<Quake>`. In the getter for
6767
/// this property, return an `AsyncThrowingStream`, whose `build` closure --
68-
/// called at runtime to create the stream -- does the following:
68+
/// called at runtime to create the stream -- uses the continuation to
69+
/// perform the following steps:
6970
///
7071
/// 1. Creates a `QuakeMonitor` instance.
7172
/// 2. Sets the monitor's `quakeHandler` property to a closure that receives

0 commit comments

Comments
 (0)