GARFutureState
Summary
Enumerations
GARFutureState
GARFutureState
The state of an async operation.
Properties |
GARFutureStateCancelled
|
The operation has been cancelled.
Any registered callback will never be invoked.
|
GARFutureStateDone
|
The operation is complete and the result is available.
If a callback was registered, it will soon be invoked with the result, if it hasn't been invoked already.
|
GARFutureStatePending
|
The operation is still pending.
It may still be possible to cancel the operation. The result of the operation isn't available yet, and any registered callback hasn't yet been dispatched or invoked.
|
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-12-12 UTC.
[null,null,["Last updated 2024-12-12 UTC."],[[["`GARFutureState` represents the state of an asynchronous operation, which can be pending, cancelled, or done."],["When the state is `GARFutureStateCancelled`, the operation is cancelled and callbacks won't be invoked."],["`GARFutureStateDone` signifies operation completion, making the result available and triggering callback invocation."],["`GARFutureStatePending` indicates an ongoing operation that can potentially be cancelled, with results and callback execution pending."]]],["The `GARFutureState` enumeration defines the state of an asynchronous operation. It includes three states: `GARFutureStatePending`, indicating the operation is ongoing and cancellable; `GARFutureStateCancelled`, meaning the operation was cancelled and any callback will not be executed; and `GARFutureStateDone`, indicating the operation is complete and the result is ready, with a registered callback soon to be invoked if not yet done.\n"]]