IngestionChunkWriter<T>.WriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes chunks asynchronously.
public abstract System.Threading.Tasks.Task WriteAsync(System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<T>> chunks, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<'T>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function WriteAsync (chunks As IAsyncEnumerable(Of IngestionChunk(Of T)), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- chunks
- IAsyncEnumerable<IngestionChunk<T>>
The chunks to write.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task representing the asynchronous write operation.