Structuretuist.filesystem 0.7.9FileSystem
Iterator
AsyncSequence+Extras.swift:34struct Iterator
struct Iterator
import FileSystem
struct AnyThrowingAsyncSequenceable<Element>
A throwing async sequence that performs type erasure by wrapping another throwing async sequence.
init?<T>(_ asyncSequence: T?) where Element == T.Element, T : Sendable, T : AsyncSequence
Creates an optional type erasing async sequence.
init<T>(_ sequence: T) where Element == T.Element, T : Sendable, T : AsyncSequence
Creates a type erasing async sequence.
func makeAsyncIterator() -> Iterator
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
mutating func next() async throws -> Element?
mutating func next(isolation actor: isolated (any Actor)?) async throws(Self.Failure) -> Self.Element?
Default implementation of next()
in terms of next()
, which is required to maintain backward compatibility with existing async iterators.