collect(upTo:into:)

    Accumulates an AsyncSequence of RandomAccessCollections into a single accumulationBuffer.

    AsyncAwaitSupport.swift:291
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    func collect(upTo maxBytes: Int, into accumulationBuffer: inout ByteBuffer) async throws

    Parameters

    accumulationBuffer

    buffer to write all the elements of self into

    maxBytes

    The maximum number of bytes this method is allowed to write into accumulationBuffer

    Throws

    NIOTooManyBytesError if the the sequence contains more than maxBytes. Note that previous elements of self might already be write to accumulationBuffer.

    Other members in extension

    Instance members