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 document details common components shared across Google Cloud C++ Client Libraries, including credentials for authentication, options for overriding default configurations, and status handling for operations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, while the current version documented is 2.22.1, with a range of versions from 2.10.1 up to 2.36.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe library uses \u003ccode\u003eStatus\u003c/code\u003e and \u003ccode\u003eStatusOr\u003c/code\u003e to report errors and successes, respectively, and includes \u003ccode\u003efuture\u003c/code\u003e and \u003ccode\u003epromise\u003c/code\u003e for asynchronous operations with callback and cancellation support.\u003c/p\u003e\n"],["\u003cp\u003eCertain namespaces, such as those containing "internal" or "testing", are reserved for implementation details and should not be used in applications, as they are subject to change without notice.\u003c/p\u003e\n"],["\u003cp\u003eAdditional information on error handling, client library configuration, authentication components, and logging components can be found through the provided links within the document.\u003c/p\u003e\n"]]],[],null,[]]