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: Sources/Operators/AsyncSequence+Multicast.swift
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ public extension AsyncSequence {
44
44
/// // Stream 2 received: ("Third", 61)
45
45
/// // Stream 1 received: ("Third", 61)
46
46
/// ```
47
-
/// In this example, the output shows that the upstream async sequence produces each random value only one time, and then sends the value to both client loops.
47
+
/// In this example, the output shows that the upstream async sequence produces each random value only one time,
48
+
/// and then sends the value to both client loops.
48
49
///
49
50
/// - Parameter stream: A `Stream` to deliver elements to downstream client loops.
Copy file name to clipboardExpand all lines: Sources/Operators/AsyncSequence+Share.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ public extension AsyncSequence {
10
10
///
11
11
/// - Tip: ``share()`` is effectively a shortcut for ``multicast()`` using a ``Passthrough`` stream, with an implicit ``autoconnect()``.
12
12
///
13
-
/// The following example uses an async sequence as a counter to emit three random numbers. Each element is delayed by 1s to give the seconf loop a chance to
14
-
/// catch all the values.
13
+
/// The following example uses an async sequence as a counter to emit three random numbers.
14
+
/// Each element is delayed by 1s to give the seconf loop a chance to catch all the values.
15
15
///
16
16
/// ```
17
17
/// let sharedAsyncSequence = AsyncSequences.From(["first", "second", "third"], interval: .seconds(1))
@@ -40,7 +40,8 @@ public extension AsyncSequence {
40
40
/// // Stream 2 received: ("Third", 61)
41
41
/// // Stream 1 received: ("Third", 61)
42
42
/// ```
43
-
/// In this example, the output shows that the upstream async sequence produces each random value only one time, and then sends the value to both client loops.
43
+
/// In this example, the output shows that the upstream async sequence produces each random value only one time,
44
+
/// and then sends the value to both client loops.
44
45
///
45
46
/// Without the ``share()`` operator, loop 1 receives three random values, followed by loop 2 receiving three different random values.
46
47
///
@@ -53,7 +54,6 @@ public extension AsyncSequence {
0 commit comments