IFuture.ExceptionNow Méthode

Définition

Retourne l’exception levée par la tâche, sans attendre.

[Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler:Java.Util.Concurrent.IFuture, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual Java.Lang.Throwable? ExceptionNow();
[<Android.Runtime.Register("exceptionNow", "()Ljava/lang/Throwable;", "GetExceptionNowHandler:Java.Util.Concurrent.IFuture, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member ExceptionNow : unit -> Java.Lang.Throwable
override this.ExceptionNow : unit -> Java.Lang.Throwable

Retours

exception levée par la tâche

Attributs

Remarques

Retourne l’exception levée par la tâche, sans attendre.

Cette méthode concerne les cas où l’appelant sait que la tâche est déjà terminée avec une exception.

Ajouté en 19.

Java documentation pour java.util.concurrent.Future.exceptionNow().

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à