Vertaling van "async method" in Duits
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Is it possible to await an event instead of another async method?
The result from the async method is the number of characters of a web page.
Catch an exception thrown by an async method
A task can be in a faulted state because multiple exceptions occurred in the awaited async method.
Eine Aufgabe kann sich in einem fehlerhaften Zustand befinden, da mehrere Ausnahmen in der erwarteten asynchronen Methode aufgetreten sind.A task WhenAll.
So, the async method launched the operation before returning it to the caller.
Der Vorgang wird also von der asynchronen Methode gestartet, bevor er an die aufrufende Funktion zurückgegeben wird.
You can then retrieve the thumbnails with the same async method you used before - they'll just come back faster
Anschließend können Sie die Miniaturansichten mit der gleichen asynchronen Methode abrufen wie zuvor - allerdings mit erhöhter Reaktionsgeschwindigkeit.
If you need a cancellation token in this situation, wrap the call to your public ref class's public async method in a PPL task that uses a cancellation token.
Wenn Sie ein Abbruchtoken für diesen Fall benötigen, können Sie den Aufruf der öffentlichen asynchronen Methode für Ihre öffentliche Referenzklasse in eine PPL-Aufgabe mit einem Abbruchtoken einschließen.
An async method may only return void, Task or Task<T>for any concrete type T.
Rückgabewerte Eine async-Method darf nur void, Task oder Task<T>für einen konkreten Typen T zurückgeben.
Therefore, make sure that any async method that can produce an exception has a return type of Task or Task<TResult>and that calls to the method are awaited.
Daher stellen Sie sicher, dass jede asynchrone Methode, die eine Ausnahme erstellen kann, über einen Rückgabetyp Task oder Task<TResult>verfügt und die Aufrufe der Methode erwartet werden.Das folgende Beispiel definiert einen ValueTask
Error (CS1998): This async method lacks the 'await' operators, so it runs synchronously.
Error (CS1998): In dieser Async-Method fehlen die 'await'-Operatoren, weshalb sie synchron ausgeführt wird.
An async method can have a return type of Task, Task<TResult>, or void.
Eine Async-Methode kann einen Rückgabetyp Task, Task<TResult>oder void haben.
Generalized async return types and ValueTask<TResult>Starting with C# 7.0, an async method can return any type that has an accessible GetAwaiter method.
Ab C# 7.0 kann eine asynchrone Methode jeden Typ zurückgeben, der über eine zugängliche GetAwaiter-Methode verfügt.Starting with C# 7.0, an async method can return any type that has an accessible GetAwaiter method.
But unlike its counterpart, the async method won't block the caller until it is finished, won't stay stuck in your mouse click event handler and, most importantly, won't freeze the rest of your application.