FutureTask.ResultNow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value stored by an already successful task.
[Android.Runtime.Register("resultNow", "()Ljava/lang/Object;", "GetResultNowHandler", ApiSince=36)]
public virtual Java.Lang.Object? ResultNow();
[<Android.Runtime.Register("resultNow", "()Ljava/lang/Object;", "GetResultNowHandler", ApiSince=36)>]
abstract member ResultNow : unit -> Java.Lang.Object
override this.ResultNow : unit -> Java.Lang.Object
Returns
The task's successful result.
Implements
- Attributes
Remarks
This method throws IllegalStateException if the task is incomplete, cancelled, or failed.