Extension (Protocol)swift-nio 2.74.0all tags
AsyncSequence (ext)
You’re viewing third-party extensions to AsyncSequence
, a protocol from the Swift standard library.
You can also read the documentation forAsyncSequence
itself.
extension AsyncSequence
Extension in NIOCore
where Self.Element:RandomAccessCollection, Self.Element.Element == UInt8
Instance members
func collect(upTo: Int, into: inout ByteBuffer
) async throws Accumulates an
AsyncSequence
ofRandomAccessCollection
s into a singleaccumulationBuffer
.func collect(upTo: Int, using: ByteBufferAllocator
) async throws -> ByteBuffer Accumulates an
AsyncSequence
ofRandomAccessCollection
s into a singleByteBuffer
.
Extension in NIOCore
where Self.Element == ByteBuffer
Instance members
func collect(upTo: Int
) async throws -> ByteBuffer Accumulates an
AsyncSequence
ofByteBuffer
s into a singleByteBuffer
.func collect(upTo: Int, into: inout ByteBuffer
) async throws Accumulates an
AsyncSequence
ofByteBuffer
s into a singleaccumulationBuffer
.
Extension in _NIOFileSystem
Instance members
func write(toFileAt: FilePath, absoluteOffset: Int64, options: OpenOptions.Write
) async throws -> Int64 Writes the contents of the
AsyncSequence
to a file.func write(toFileAt: FilePath, absoluteOffset: Int64, options: OpenOptions.Write, fileSystem: some FileSystemProtocol
) async throws -> Int64 Writes the contents of the
AsyncSequence
to a file.
Extension in _NIOFileSystem
Instance members
func write(toFileAt: FilePath, absoluteOffset: Int64, options: OpenOptions.Write
) async throws -> Int64 Writes the contents of the
AsyncSequence
to a file.func write(toFileAt: FilePath, absoluteOffset: Int64, options: OpenOptions.Write, fileSystem: some FileSystemProtocol
) async throws -> Int64 Writes the contents of the
AsyncSequence
to a file.