mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-25 04:27:48 +00:00
Add a label for consistency with AsyncThrowingChannel for the element type of AsyncChannel (#76)
This commit is contained in:
1 parent
09803ec7f9
commit
0fda7f3e0b
1 file changed
+1
-1
@@ -86,7 +86,7 @@ public final class AsyncChannel<Element: Sendable>: AsyncSequence, Sendable {
|
||||
|
||||
let state = ManagedCriticalState(State())
|
||||
|
||||
public init(_ elementType: Element.Type = Element.self) { }
|
||||
public init(element elementType: Element.Type = Element.self) { }
|
||||
|
||||
func establish() -> Int {
|
||||
state.withCriticalRegion { state in
|
||||
|
||||
Reference in new issue
Block a user