Method DisposeAsync
- Namespace
- YndigoBlue.Velocity.Engine
- Assembly
- YndigoBlue.Velocity.dll
DisposeAsync()
Asynchronous counterpart to Dispose(). Releases the underlying DbDataReader and DbCommand without blocking a thread while the provider performs any async cleanup.
public ValueTask DisposeAsync()
Returns
Remarks
Safe to call even if SetupResults(DbCommand, DbDataReader) was never invoked (both fields default to null).
Prefer this over Dispose() when the reader was obtained via await using, so that
provider-specific async teardown (e.g. closing a network cursor) does not block a thread pool thread.