StatusOr returns a value on success and a Status on error.
future and promise futures (a holder that will receive a value asynchronously) and promises (the counterpart of a future, where values are stored asynchronously). They satisfy the API for std::future and std::promise, and add support for callbacks and cancellation.
More information
Error Handling for more details about how the libraries report run-time errors and how you can handle them.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This page details common components shared across Google Cloud C++ Client Libraries, including credentials, options, status, StatusOr, future, and promise."],["The latest release candidate version is 2.37.0-rc, while version 2.14.0 is a stable version whose documentation is being referenced for common component details."],["The library offers components for error handling, client configuration, authentication, and logging."],["Specific namespaces containing \"internal\" or \"testing\" in their names are reserved for internal implementation and are subject to change without notice, so usage of these names are discouraged."],["The provided list shows a range of versions from 2.37.0-rc down to 2.10.1, with links to each version's documentation, offering a historical view of the library's releases."]]],[]]