[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/java/util/concurrent/Future.State [Back]  [Original]

Future.State  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

Future.State

public static final enum Future.State
extends Enum<Future.State>

java.lang.Object
   ↳ java.lang.Enum<java.util.concurrent.Future.State>
     ↳ java.util.concurrent.Future.State


Represents the computation state.

Summary

Enum values

Future.State  CANCELLED

The task was cancelled. 

Future.State  FAILED

The task completed with an exception. 

Future.State  RUNNING

The task has not completed. 

Future.State  SUCCESS

The task completed with a result. 

Public methods

static Future.State valueOf(String name)
static final State[] values()

Inherited methods

Enum values

CANCELLED

Added in API level 36
public static final Future.State CANCELLED

The task was cancelled.

See also:

FAILED

Added in API level 36
public static final Future.State FAILED

The task completed with an exception.

See also:

RUNNING

Added in API level 36
public static final Future.State RUNNING

The task has not completed.

SUCCESS

Added in API level 36
public static final Future.State SUCCESS

The task completed with a result.

See also:

Public methods

valueOf

public static Future.State valueOf (String name)

Parameters
name String

Returns
Future.State

values

public static final State[] values ()

Returns
State[]

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page