Structureswift-nio 2.81.0_NIOFileSystem
BatchedIterator
An AsyncIteratorProtocol
of Array<DirectoryEntry>
.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct BatchedIterator
An AsyncIteratorProtocol
of Array<DirectoryEntry>
.
struct BatchedIterator
s14_NIOFileSystem16DirectoryEntriesV7BatchedV0E8IteratorV
What are these?7PVZS
import _NIOFileSystem
A file system library for Swift.
struct Batched
An AsyncSequence
of batches of directory entries.
struct DirectoryEntries
An AsyncSequence
of entries in a directory.
@preconcurrency init<S>(wrapping sequence: S) where S : Sendable, S : AsyncSequence, S.Element == [DirectoryEntry]
Creates a Batched
sequence by wrapping an AsyncSequence
of directory entry batches.
func makeAsyncIterator() -> BatchedIterator
typealias AsyncIterator = BatchedIterator
typealias Element = [DirectoryEntry]
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
mutating func next() async throws -> [DirectoryEntry]?
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.