CompletableFuture.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 of an already successful future without waiting for completion.
[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 successful completion value, which can be null.
Implements
- Attributes
Remarks
This method throws IllegalStateException if the future is incomplete, cancelled, or completed exceptionally.