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 provides documentation for common components shared across Google Cloud C++ Client Libraries, including versions ranging from 2.10.1 up to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe library encompasses essential elements like Credentials for authentication, Options for default configurations, and Status/StatusOr for managing errors and results.\u003c/p\u003e\n"],["\u003cp\u003eIt features support for asynchronous programming through \u003ccode\u003efuture\u003c/code\u003e and \u003ccode\u003epromise\u003c/code\u003e objects, enabling callbacks and cancellation, and mirroring the API for \u003ccode\u003estd::future\u003c/code\u003e and \u003ccode\u003estd::promise\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUsers are advised against using symbols within namespaces such as \u003ccode\u003einternal\u003c/code\u003e and \u003ccode\u003etesting\u003c/code\u003e as they are reserved for internal implementation details and are subject to change without notice, which can cause applications to break.\u003c/p\u003e\n"],["\u003cp\u003eFurther details regarding error handling, library configuration, logging components, and authentication components are available through the links within the document.\u003c/p\u003e\n"]]],[],null,[]]