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 library provides common components for Google Cloud C++ Client Libraries, including credentials, options, status, StatusOr, future, and promise."],["Version 2.37.0-rc is the latest release candidate, while 2.13.0 is the version associated with the documented common components."],["The library offers functionalities for configuring authentication, overriding default configurations, handling errors, and managing asynchronous operations."],["The document includes vital warnings regarding reserved namespaces (`internal` and `testing`) that should not be used directly in applications, to avoid compatibility issues with future library updates."],["Users can find additional information on error handling, client library configuration, authentication, and logging through the provided links."]]],[]]