Skip to content

Commit a5c34b2

Browse files
committed
Add additional docs for extension methods and AsyncCombineLatest2Sequence structure
1 parent 5b5d91c commit a5c34b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/AsyncAlgorithms/AsyncCombineLatest2Sequence.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
/// Creates an asynchronous sequence that combines the latest values from two `AsyncSequence` types
13+
/// by emitting a tuple of the values.
1214
public func combineLatest<Base1: AsyncSequence, Base2: AsyncSequence>(_ base1: Base1, _ base2: Base2) -> AsyncCombineLatest2Sequence<Base1, Base2> {
1315
AsyncCombineLatest2Sequence(base1, base2)
1416
}
1517

18+
/// An `AsyncSequence` that combines the latest values from two `AsyncSequence` types by emitting a
19+
/// tu ple of the values.
1620
public struct AsyncCombineLatest2Sequence<Base1: AsyncSequence, Base2: AsyncSequence>: Sendable
1721
where
1822
Base1: Sendable, Base2: Sendable,

0 commit comments

Comments
 (0)