File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +9
-8
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 {
@@ -53,7 +53,7 @@ public func _defaultActorDestroy(_ actor: AnyObject)
53
53
internal func _enqueueOnMain( _ job: UnownedJob )
54
54
55
55
/// A singleton actor whose executor is equivalent to
56
- /// \c DispatchQueue.main, which is the main dispatch queue.
56
+ /// DispatchQueue.main, which is the main 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,15 @@ 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 produced by this asynchronous sequence.
78
78
associatedtype AsyncIterator : AsyncIteratorProtocol where AsyncIterator. Element == Element
79
- /// Creates the asynchronous iterator that produces elements of this
80
- /// asynchronous sequence.
81
- ///
82
- /// - Returns: An instance of the `AsyncIterator` type used to produce
83
- /// elements of the asynchronous sequence.
79
+ /// The type of element produced by this asynchronous sequence.
84
80
associatedtype Element
81
+ /// Creates the asynchronous iterator that produces elements of this
82
+ /// asynchronous sequence.
83
+ ///
84
+ /// - Returns: An instance of the `AsyncIterator` type used to produce
85
+ /// elements of the asynchronous sequence.
85
86
__consuming func makeAsyncIterator( ) -> AsyncIterator
86
87
}
87
88
You can’t perform that action at this time.
0 commit comments