Table of Contents

Property Items

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

Items

Gets a task that completes with the rows, once the read is done.

public Task<PooledArray<T>> Items { get; }

Property Value

Task<PooledArray<T>>

A task whose result is the PooledArray<T> over the rows.

Remarks

The read started with the buffer; this never starts another. The task is the same on every access, and the view is built only if it is asked for. It faults with the read's exception, except that it is cancelled when the read ended with an OperationCanceledException of any origin (the caller's token, which it then carries, or a provider's own), or when the buffer was disposed first. Disposing the PooledArray<T> it returns disposes this buffer. In a narrow race, when a dispose lands just as the read completes, the task can still complete successfully; every member of the view then throws ObjectDisposedException. A read that found no rows completes with Empty, which holds nothing and keeps working after the buffer is disposed.

Exceptions

ObjectDisposedException

The buffer is disposed.