File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 , * )
2121public protocol Actor : AnyObject , Sendable {
@@ -52,8 +52,8 @@ public func _defaultActorDestroy(_ actor: AnyObject)
5252@usableFromInline
5353internal 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 ( )
Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ import Swift
7474@available ( SwiftStdlib 5 . 5 , * )
7575@rethrows
7676public 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
You can’t perform that action at this time.
0 commit comments