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-08-14 UTC."],[[["\u003cp\u003eThis page documents the common components of the Google Cloud C++ Client Libraries, including the latest release candidate (2.37.0-rc) and previous versions down to 2.10.1.\u003c/p\u003e\n"],["\u003cp\u003eThe library contains components like Credentials for authentication, Options for client configuration, and Status/StatusOr for managing errors and results.\u003c/p\u003e\n"],["\u003cp\u003eIt also features futures and promises, which offer asynchronous value handling with support for callbacks and cancellation, extending the capabilities of \u003ccode\u003estd::future\u003c/code\u003e and \u003ccode\u003estd::promise\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCertain namespaces, particularly those containing "internal" or "testing," are reserved for internal implementation and are subject to change without notice, advising against their use in external applications.\u003c/p\u003e\n"],["\u003cp\u003eThe page links to detailed guides on error handling, client configuration, authentication components, and logging components for more in-depth information.\u003c/p\u003e\n"]]],[],null,[]]