Add a smattering of brief inline docs for most functions/types (#97)

This commit is contained in:
Philippe Hausler authored and GitHub committed 2022-03-18 15:15:55 -07:00
1 parent d4bdb34283
commit 718d647945
13 files changed
+50

No files matched your search

@@ -10,17 +10,20 @@
//===----------------------------------------------------------------------===//
extension AsyncSequence where Element: AsyncSequence {
/// Concatenate an `AsyncSequence` of `AsyncSequence` elements
@inlinable
public func joined() -> AsyncJoinedSequence<Self> {
return AsyncJoinedSequence(self)
}
}
/// An `AsyncSequence` that concatenates`AsyncSequence` elements
@frozen
public struct AsyncJoinedSequence<Base: AsyncSequence>: AsyncSequence where Base.Element: AsyncSequence {
public typealias Element = Base.Element.Element
public typealias AsyncIterator = Iterator
/// The iterator for an `AsyncJoinedSequence` instance.
@frozen
public struct Iterator: AsyncIteratorProtocol {
@usableFromInline