Langue

VectorStoreWriter<T>.WriteAsync Méthode

Définition

Écrit des blocs de manière asynchrone.

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

Paramètres

chunks
IAsyncEnumerable<IngestionChunk<T>>

Blocs à écrire.

cancellationToken
CancellationToken

Jeton à surveiller pour les demandes d’annulation.

Retours

Tâche représentant l’opération d’écriture asynchrone.

S’applique à