CompletableFuture.GetNow(Object) 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.
Returns the result value (or throws any encountered exception) if completed, else returns the given valueIfAbsent.
[Android.Runtime.Register("getNow", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetGetNow_Ljava_lang_Object_Handler", ApiSince=24)]
public virtual Java.Lang.Object? GetNow (Java.Lang.Object? valueIfAbsent);
[<Android.Runtime.Register("getNow", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetGetNow_Ljava_lang_Object_Handler", ApiSince=24)>]
abstract member GetNow : Java.Lang.Object -> Java.Lang.Object
override this.GetNow : Java.Lang.Object -> Java.Lang.Object
Parameters
- valueIfAbsent
- Object
the value to return if not completed
Returns
the result value, if completed, else the given valueIfAbsent
- Attributes
Remarks
Returns the result value (or throws any encountered exception) if completed, else returns the given valueIfAbsent.
Java documentation for java.util.concurrent.CompletableFuture.getNow(T)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.