Add a label for consistency with AsyncThrowingChannel for the element type of AsyncChannel (#76)

This commit is contained in:
Philippe Hausler authored and GitHub committed 2022-03-11 17:59:15 -08:00
1 parent 09803ec7f9
commit 0fda7f3e0b
1 file changed
+1 -1
+1 -1
View File
@@ -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