diff --git a/Sources/AsyncAlgorithms/AsyncShareSequence.swift b/Sources/AsyncAlgorithms/AsyncShareSequence.swift index 6bdee70..3253368 100644 --- a/Sources/AsyncAlgorithms/AsyncShareSequence.swift +++ b/Sources/AsyncAlgorithms/AsyncShareSequence.swift @@ -683,6 +683,10 @@ extension AsyncShareSequence: AsyncSequence { init(_ iteration: Iteration) { side = Side(iteration) } + + mutating func next() async rethrows -> Element? { + try await side.next(isolation: nil) + } mutating func next(isolation actor: isolated (any Actor)?) async throws(Failure) -> Element? { try await side.next(isolation: actor)