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"]],[["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 2025-07-02 UTC."],[[["This page details the common components of the Google Cloud C++ Client Libraries, including authentication, configuration, error reporting, and asynchronous operations."],["The library provides `Credentials` for authentication, `Options` for client configuration, `Status` and `StatusOr` for error handling, and `future` and `promise` for asynchronous tasks."],["Version 2.37.0-rc is the latest release candidate, and multiple previous versions are accessible for review, with the current version documented being 2.34.0."],["Specific namespaces containing \"internal\" or \"testing\" are reserved for internal use, and use of these namespaces is discouraged as they are subject to change."]]],[]]