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 document details common components shared across Google Cloud C++ Client Libraries, including credentials for authentication, options for client configuration, and status and statusOr for error management."],["The libraries provide `future` and `promise` classes for asynchronous operations, which are compatible with `std::future` and `std::promise` while also offering support for callbacks and cancellation."],["Version 2.37.0-rc is the latest release candidate, with version 2.31.0 being the current focus of the detailed documentation, and various previous versions are also available for reference."],["Certain namespaces, particularly those with `internal` or `testing` in their names, are reserved for implementation details and should not be used directly in applications to avoid potential breakage with future library updates."],["The documentation covers how to handle errors, configure the libraries, and add authentication and logging."]]],[]]