IAsyncEnumerable<T> Interfaccia
Definizione
Espone un enumeratore che fornisce un'iterazione asincrona sui valori di un tipo specificato.Exposes an enumerator that provides asynchronous iteration over values of a specified type.
generic <typename T>
public interface class IAsyncEnumerable
public interface IAsyncEnumerable<out T>
type IAsyncEnumerable<'T> = interface
Public Interface IAsyncEnumerable(Of Out T)
Parametri di tipo
- T
Tipo degli elementi nella raccolta.The type of the elements in the collection.
Questo parametro di tipo è covariante, ovvero puoi usare il tipo specificato o qualsiasi tipo più derivato. Per altre informazioni sulla covarianza e la controvarianza, vedi Covarianza e controvarianza nei generics.Metodi
GetAsyncEnumerator(CancellationToken) |
Restituisce un enumeratore che esegue l'iterazione asincrona nella raccolta.Returns an enumerator that iterates asynchronously through the collection. |
Metodi di estensione
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean) |
Consente di configurare la modalità di esecuzione delle espressioni await per le attività restituite da un'iterazione asincrona.Configures how awaits on the tasks returned from an async iteration are performed. |
WithCancellation<T>(IAsyncEnumerable<T>, CancellationToken) |
Imposta l'elemento CancellationToken da passare a GetAsyncEnumerator(CancellationToken) quando si esegue l'iterazione.Sets the CancellationToken to be passed to GetAsyncEnumerator(CancellationToken) when iterating. |