VectorStoreWriter<T>.WriteAsync Metodo

Definizione

Scrive blocchi in modo asincrono.

public override System.Threading.Tasks.Task WriteAsync(System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<T>> chunks, System.Threading.CancellationToken cancellationToken = default);
override this.WriteAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<'T>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (chunks As IAsyncEnumerable(Of IngestionChunk(Of T)), Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

chunks
IAsyncEnumerable<IngestionChunk<T>>

Blocchi da scrivere.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento.

Valori restituiti

Attività che rappresenta l'operazione di scrittura asincrona.

Si applica a