How often the session polls for automatic shutdowns.
Applications can shutdown a session by calling .cancel() on the returned future<Status>. In addition, applications can fire & forget a session, which is only shutdown once the completion queue servicing the session shuts down. In this latter case the session polls periodically to detect if the CQ has shutdown. This controls how often this polling happens.
[[["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\u003eThe content focuses on different versions of the \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e for Google Cloud Pub/Sub's C++ library, ranging from version 2.11.0 to 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.37.0-rc is the latest release candidate, with each listed version providing access to the \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e struct.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e controls how often a Pub/Sub session polls to detect if a completion queue (CQ) has shut down, particularly when a session is fired and forgotten.\u003c/p\u003e\n"],["\u003cp\u003eApplications can shut down sessions manually using \u003ccode\u003e.cancel()\u003c/code\u003e or rely on the completion queue shutdown, with the polling frequency for the latter managed by this option.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e type is an alias for \u003ccode\u003estd::chrono::milliseconds\u003c/code\u003e, indicating it manages the time duration between polling intervals.\u003c/p\u003e\n"]]],[],null,[]]