From c2a231a40f8cb671cd53bc8273375bf8e6f5e74e Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 5 Nov 2025 08:38:35 -0800 Subject: [PATCH] Fix a new warning for Swift 6.2 --- Sources/AsyncMonitor/AsyncMonitor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncMonitor/AsyncMonitor.swift b/Sources/AsyncMonitor/AsyncMonitor.swift index 1fe1338..3f7f9d0 100644 --- a/Sources/AsyncMonitor/AsyncMonitor.swift +++ b/Sources/AsyncMonitor/AsyncMonitor.swift @@ -71,7 +71,7 @@ public final class AsyncMonitor: Hashable, AsyncCancellable { public init( sequence: sending Sequence, @_inheritActorContext performing block: @escaping @Sendable (Element) async -> Void - ) where Sequence: AsyncSequence, Element == Sequence.Element { + ) where Sequence: AsyncSequence & Sendable, Sequence.Element == Element { self.task = Task { do { for try await element in sequence {