mirror of
https://github.com/samsonjs/AsyncMonitor.git
synced 2026-03-25 08:25:47 +00:00
Fix a new warning for Swift 6.2
This commit is contained in:
parent
bb8d04b54f
commit
c2a231a40f
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ public final class AsyncMonitor: Hashable, AsyncCancellable {
|
|||
public init<Element: Sendable, Sequence>(
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue