init(stream:)

Creates a loader backed by the given async sequence.

Declaration

init(stream: some Sendable & AsyncSequence<Sample, any Error>)