From 0fda7f3e0b3ece739a74bbde6946daa97c2a663a Mon Sep 17 00:00:00 2001 From: Philippe Hausler Date: Fri, 11 Mar 2022 17:59:15 -0800 Subject: [PATCH] Add a label for consistency with AsyncThrowingChannel for the element type of AsyncChannel (#76) --- Sources/AsyncAlgorithms/AsyncChannel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncAlgorithms/AsyncChannel.swift b/Sources/AsyncAlgorithms/AsyncChannel.swift index 16b96fd..bf3cfe7 100644 --- a/Sources/AsyncAlgorithms/AsyncChannel.swift +++ b/Sources/AsyncAlgorithms/AsyncChannel.swift @@ -86,7 +86,7 @@ public final class AsyncChannel: 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