FutureTask.State 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 current completion state of this 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 implementation waits for an in-progress outcome publication before it reports the corresponding completed state.