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 page documents different versions of the \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e for Google Cloud Pub/Sub C++ client library, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e determines how frequently a session checks for shutdown signals, particularly when applications use fire-and-forget methods or the completion queue (CQ) shuts down.\u003c/p\u003e\n"],["\u003cp\u003eThe ability to shut down a session can be done either by calling \u003ccode\u003e.cancel()\u003c/code\u003e on a returned \u003ccode\u003efuture<Status>\u003c/code\u003e or by allowing the session to be cleaned up when the completion queue servicing it shuts down.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eShutdownPollingPeriodOption\u003c/code\u003e is a type alias of \u003ccode\u003estd::chrono::milliseconds\u003c/code\u003e, signifying that the polling period is specified in milliseconds.\u003c/p\u003e\n"]]],[],null,[]]