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, with version 2.37.0-rc being the latest release candidate.\u003c/p\u003e\n"],["\u003cp\u003eThe common components include tools for authentication, such as \u003ccode\u003eCredentials\u003c/code\u003e, and configuration with \u003ccode\u003eOptions\u003c/code\u003e, in addition to error handling with \u003ccode\u003eStatus\u003c/code\u003e and asynchronous operations with \u003ccode\u003efuture\u003c/code\u003e and \u003ccode\u003epromise\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are specific namespaces, like those containing "internal" or "testing," which are reserved for implementation details and should not be used in applications.\u003c/p\u003e\n"],["\u003cp\u003eThe library offers resources on topics such as error handling, client library configuration, authentication, and logging, to help users manage their applications effectively.\u003c/p\u003e\n"],["\u003cp\u003eThe page content ranges in version history from \u003ccode\u003e2.10.1\u003c/code\u003e to \u003ccode\u003e2.37.0-rc\u003c/code\u003e (latest).\u003c/p\u003e\n"]]],[],null,[]]