FutureState
The state of an asynchronous operation.
Inherited Methods
From class
java.lang.Enum
final
Object
|
clone()
|
final
int
|
|
int
|
|
final
Optional<EnumDesc<FutureState>>
|
describeConstable()
|
final
boolean
|
|
final
void
|
finalize()
|
final
Class<FutureState>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
java.lang.constant.Constable
abstract
Optional<? extends ConstantDesc>
|
describeConstable()
|
From interface
java.lang.Comparable
Enum Values
public
static
final
FutureState
CANCELLED
CANCELLED
public static final FutureState CANCELLED
The operation has been cancelled. Any associated callback will never be invoked.
public
static
final
FutureState
DONE
DONE
public static final FutureState DONE
The operation is complete and the result is available. If a callback was associated, it will
soon be invoked with the result on the main thread, if it hasn't been invoked already.
public
static
final
FutureState
PENDING
PENDING
public static final FutureState PENDING
The operation is still pending. The result of the operation isn't available yet, and any
associated callback hasn't yet been dispatched or invoked.
Do not use this to check if the operation can be cancelled as the state can change from
another thread between the call to VpsAvailabilityFuture.getState()
and VpsAvailabilityFuture.cancel()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`FutureState` is an enum representing the state of an asynchronous operation in ARCore."],["It has three possible states: `PENDING`, `DONE`, and `CANCELLED`, indicating the operation's progress."],["When the state is `DONE`, the result is available and any associated callback will be invoked."],["While `PENDING` signifies the operation is ongoing, it shouldn't be solely relied upon for cancellation checks due to potential race conditions."]]],[]]