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 lists the different versions of the common components for the Google Cloud C++ Client Libraries, ranging from the latest release candidate, 2.37.0-rc, down to version 2.10.1.\u003c/p\u003e\n"],["\u003cp\u003eThe common components library includes \u003ccode\u003eCredentials\u003c/code\u003e for authentication, \u003ccode\u003eOptions\u003c/code\u003e for configuration, and error handling classes like \u003ccode\u003eStatus\u003c/code\u003e and \u003ccode\u003eStatusOr\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAsynchronous operations are supported through \u003ccode\u003efuture\u003c/code\u003e and \u003ccode\u003epromise\u003c/code\u003e components, which enhance \u003ccode\u003estd::future\u003c/code\u003e and \u003ccode\u003estd::promise\u003c/code\u003e with features like callbacks and cancellation.\u003c/p\u003e\n"],["\u003cp\u003eCertain namespaces, specifically those containing \u003ccode\u003einternal\u003c/code\u003e or \u003ccode\u003etesting\u003c/code\u003e, are reserved for implementation details and should not be used directly, as these may change in future versions.\u003c/p\u003e\n"],["\u003cp\u003eAdditional information about error handling, library configuration, authentication, and logging can be found in the linked sections, providing in-depth guidance on these topics.\u003c/p\u003e\n"]]],[],null,[]]