Language

CompletableFuture.State Method

Definition

Gets the current completion state of this future.

[Android.Runtime.Register("state", "()Ljava/util/concurrent/Future$State;", "GetStateHandler", ApiSince=36)]
public virtual Java.Util.Concurrent.IFuture.State? State();
[<Android.Runtime.Register("state", "()Ljava/util/concurrent/Future$State;", "GetStateHandler", ApiSince=36)>]
abstract member State : unit -> Java.Util.Concurrent.IFuture.State
override this.State : unit -> Java.Util.Concurrent.IFuture.State

Returns

The running, successful, failed, or cancelled state observed by this call.

Attributes

Remarks

An incomplete future reports the running state. A completed future reports success, failure, or cancellation according to its stored outcome.

Applies to