Skip to content

Commit bae7115

Browse files
authored
Merge pull request #37671 from apple/documentation-makeasynciterator-78566005
2 parents 6008b32 + 83ac78f commit bae7115

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

stdlib/public/Concurrency/Actor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Swift
1515

1616
/// Common protocol to which all actors conform.
1717
///
18-
/// The \c Actor protocol generalizes over all actor types. Actor types
18+
/// The `Actor` protocol generalizes over all actor types. Actor types
1919
/// implicitly conform to this protocol.
2020
@available(SwiftStdlib 5.5, *)
2121
public protocol Actor: AnyObject, Sendable {
@@ -52,8 +52,8 @@ public func _defaultActorDestroy(_ actor: AnyObject)
5252
@usableFromInline
5353
internal func _enqueueOnMain(_ job: UnownedJob)
5454

55-
/// A singleton actor whose executor is equivalent to
56-
/// \c DispatchQueue.main, which is the main dispatch queue.
55+
/// A singleton actor whose executor is equivalent to the main
56+
/// dispatch queue.
5757
@available(SwiftStdlib 5.5, *)
5858
@globalActor public final actor MainActor: SerialExecutor {
5959
public static let shared = MainActor()

stdlib/public/Concurrency/AsyncSequence.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ import Swift
7474
@available(SwiftStdlib 5.5, *)
7575
@rethrows
7676
public protocol AsyncSequence {
77-
/// The type of element produced by this asynchronous sequence.
77+
/// The type of asynchronous iterator that produces elements of this
78+
/// asynchronous sequence.
7879
associatedtype AsyncIterator: AsyncIteratorProtocol where AsyncIterator.Element == Element
80+
/// The type of element produced by this asynchronous sequence.
81+
associatedtype Element
7982
/// Creates the asynchronous iterator that produces elements of this
8083
/// asynchronous sequence.
8184
///
8285
/// - Returns: An instance of the `AsyncIterator` type used to produce
8386
/// elements of the asynchronous sequence.
84-
associatedtype Element
8587
__consuming func makeAsyncIterator() -> AsyncIterator
8688
}
8789

0 commit comments

Comments
 (0)