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
15
15
16
16
/// Common protocol to which all actors conform.
17
17
///
18
- /// The \c Actor protocol generalizes over all actor types. Actor types
18
+ /// The ` Actor` protocol generalizes over all actor types. Actor types
19
19
/// implicitly conform to this protocol.
20
20
@available ( SwiftStdlib 5 . 5 , * )
21
21
public protocol Actor : AnyObject , Sendable {
@@ -52,8 +52,8 @@ public func _defaultActorDestroy(_ actor: AnyObject)
52
52
@usableFromInline
53
53
internal func _enqueueOnMain( _ job: UnownedJob )
54
54
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.
57
57
@available( SwiftStdlib 5 . 5 , * )
58
58
@globalActor public final actor MainActor: SerialExecutor {
59
59
public static let shared = MainActor ( )
Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ import Swift
74
74
@available ( SwiftStdlib 5 . 5 , * )
75
75
@rethrows
76
76
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.
78
79
associatedtype AsyncIterator : AsyncIteratorProtocol where AsyncIterator. Element == Element
80
+ /// The type of element produced by this asynchronous sequence.
81
+ associatedtype Element
79
82
/// Creates the asynchronous iterator that produces elements of this
80
83
/// asynchronous sequence.
81
84
///
82
85
/// - Returns: An instance of the `AsyncIterator` type used to produce
83
86
/// elements of the asynchronous sequence.
84
- associatedtype Element
85
87
__consuming func makeAsyncIterator( ) -> AsyncIterator
86
88
}
87
89
You can’t perform that action at this time.
0 commit comments