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 webpage details common components shared across Google Cloud C++ Client Libraries, including credentials for authentication, options for overriding default configurations, and status and statusOr for handling errors."],["The latest release candidate is version 2.37.0-rc, and the page lists all common library versions from 2.37.0-rc down to 2.10.1, each with their own linked documentation."],["The library uses futures and promises for asynchronous operations, mirroring `std::future` and `std::promise`, with the added functionality of supporting callbacks and cancellation."],["Certain namespaces containing `internal` or `testing` are reserved for internal implementation and are subject to change, and therefore should not be used in applications to avoid compatibility issues."],["Additional information is provided on error handling, client library configuration, authentication components, and logging components."]]],[]]