Language

ForkJoinTask.State Method

Definition

Gets the current completion state of this fork/join task.

[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

The state is determined from the task's completion and abnormal-completion status flags.

Applies to