Share via


IFuture.ResultNow Method

Definition

Returns the computed result, without waiting.

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

Returns

the computed result

Attributes

Remarks

Returns the computed result, without waiting.

This method is for cases where the caller knows that the task has already completed successfully, for example when filtering a stream of Future objects for the successful tasks and using a mapping operation to obtain a stream of results. {

Added in 19.

Java documentation for java.util.concurrent.Future.resultNow().

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.

Applies to