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 common components shared across Google Cloud C++ Client Libraries, including credentials, options, status, futures, and promises."],["The latest version available is 2.37.0-rc, with multiple previous versions also documented, ranging down to version 2.10.1."],["Users can configure authentication and customize client library settings using components found in this documentation, which are linked at the bottom of the document."],["The document provides information on error handling and logging components, as well as warnings against using implementation details and namespaces in the code that are subject to change."]]],[]]