Table of Contents

Method ToPooledBufferStream

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

ToPooledBufferStream(CancellationToken)

Reads the rows into pooled chunks, one chunk at a time, and frees the connection before the consumer sees a row.

IAsyncEnumerable<ReadOnlyMemory<T>> ToPooledBufferStream(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancels the read.

Returns

IAsyncEnumerable<ReadOnlyMemory<T>>

The chunks, in order. A chunk is valid until the enumeration moves on, so copy what you keep. The enumeration can be taken once.