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 {