DataflowBlock.OutputAvailableAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| OutputAvailableAsync<TOutput>(ISourceBlock<TOutput>, CancellationToken) |
Stellt eine Bereit Task<TResult> , die die Quelle asynchron auf die verfügbare Ausgabe überwacht. |
| OutputAvailableAsync<TOutput>(ISourceBlock<TOutput>) |
Stellt eine Bereit Task<TResult> , die die Quelle asynchron auf die verfügbare Ausgabe überwacht. |
OutputAvailableAsync<TOutput>(ISourceBlock<TOutput>, CancellationToken)
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
Stellt eine Bereit Task<TResult> , die die Quelle asynchron auf die verfügbare Ausgabe überwacht.
public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<bool> ^ OutputAvailableAsync(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<bool> OutputAvailableAsync<TOutput>(this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source, System.Threading.CancellationToken cancellationToken);
static member OutputAvailableAsync : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OutputAvailableAsync(Of TOutput) (source As ISourceBlock(Of TOutput), cancellationToken As CancellationToken) As Task(Of Boolean)
Typparameter
- TOutput
Gibt den Datentyp an, der in der Quelle enthalten ist.
Parameter
- source
- ISourceBlock<TOutput>
Die zu überwachende Quelle.
- cancellationToken
- CancellationToken
Das Abbruchtoken, mit dem der asynchrone Vorgang abgebrochen werden soll.
Gibt zurück
A Task<TResult> that informs of whether and when more output is available. Wenn die Aufgabe abgeschlossen ist, ist Resultdies true , mehr Ausgabe in der Quelle verfügbar (obwohl ein anderer Verbraucher der Quelle die Daten abrufen kann). Wenn sie zurückgegeben falsewird, ist keine weitere Ausgabe verfügbar und wird nie verfügbar sein, da die Quelle abgeschlossen wurde, bevor die Ausgabe verfügbar ist.
Ausnahmen
Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.
Gilt für:
OutputAvailableAsync<TOutput>(ISourceBlock<TOutput>)
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
- Quelle:
- DataflowBlock.cs
Stellt eine Bereit Task<TResult> , die die Quelle asynchron auf die verfügbare Ausgabe überwacht.
public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<bool> ^ OutputAvailableAsync(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source);
public static System.Threading.Tasks.Task<bool> OutputAvailableAsync<TOutput>(this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source);
static member OutputAvailableAsync : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OutputAvailableAsync(Of TOutput) (source As ISourceBlock(Of TOutput)) As Task(Of Boolean)
Typparameter
- TOutput
Gibt den Datentyp an, der in der Quelle enthalten ist.
Parameter
- source
- ISourceBlock<TOutput>
Die zu überwachende Quelle.
Gibt zurück
A Task<TResult> that informs of whether and when more output is available. Wenn die Aufgabe abgeschlossen ist, ist Resultdies true , mehr Ausgabe in der Quelle verfügbar (obwohl ein anderer Verbraucher der Quelle die Daten abrufen kann).
Wenn sie zurückgegeben falsewird, ist keine weitere Ausgabe verfügbar und wird nie verfügbar sein, da die Quelle abgeschlossen wurde, bevor die Ausgabe verfügbar ist.