The poll action, typically performing an RPC. The value passed to the
action is the overall deadline, so that the RPC settings can be adjusted accordingly. A null
value indicates no deadline.
The poll action, typically performing an RPC. The value passed to the
action is the overall deadline, so that the RPC settings can be adjusted accordingly. A null value
indicates no deadline.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePolling\u003c/code\u003e class provides helper methods for managing polling scenarios within the \u003ccode\u003eGoogle.Api.Gax\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePollRepeatedlyAsync\u003c/code\u003e method asynchronously performs a polling action until a specific condition within the response is met, using parameters like \u003ccode\u003epollAction\u003c/code\u003e, \u003ccode\u003ecompletionPredicate\u003c/code\u003e, \u003ccode\u003eclock\u003c/code\u003e, \u003ccode\u003escheduler\u003c/code\u003e, \u003ccode\u003epollSettings\u003c/code\u003e, and \u003ccode\u003ecancellationToken\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePollRepeatedly\u003c/code\u003e method repeatedly calls a specified polling action and delays the calls until a given condition is met in the response, using similar parameters as the \u003ccode\u003ePollRepeatedlyAsync\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003ePollRepeatedly\u003c/code\u003e and \u003ccode\u003ePollRepeatedlyAsync\u003c/code\u003e accept a \u003ccode\u003eTResponse\u003c/code\u003e type parameter to specify the response type for the polling action.\u003c/p\u003e\n"],["\u003cp\u003eIn the case of a timeout, \u003ccode\u003ePollRepeatedly\u003c/code\u003e will throw a \u003ccode\u003eTimeoutException\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class Polling (4.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.10.0 (latest)](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Polling)\n- [4.8.0](/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Polling)\n- [4.4.0](/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Polling)\n- [4.3.1](/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Polling)\n- [4.2.0](/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Polling)\n- [4.0.0](/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Polling)\n- [3.2.0](/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Polling) \n\n public static class Polling\n\nHelper methods for polling scenarios. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Polling \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Api.Gax](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax)\n\nAssembly\n--------\n\nGoogle.Api.Gax.dll\n\nMethods\n-------\n\n### PollRepeatedlyAsync\\\u003cTResponse\\\u003e(Func\\\u003cDateTime?, Task\\\u003cTResponse\\\u003e\\\u003e, Predicate\\\u003cTResponse\\\u003e, IClock, IScheduler, PollSettings, CancellationToken)\n\n public static Task\u003cTResponse\u003e PollRepeatedlyAsync\u003cTResponse\u003e(Func\u003cDateTime?, Task\u003cTResponse\u003e\u003e pollAction, Predicate\u003cTResponse\u003e completionPredicate, IClock clock, IScheduler scheduler, PollSettings pollSettings, CancellationToken cancellationToken)\n\nAsynchronously repeatedly calls the specified polling action, delaying between calls,\nuntil a given condition is met in the response.\n\n### PollRepeatedly\\\u003cTResponse\\\u003e(Func\\\u003cDateTime?, TResponse\\\u003e, Predicate\\\u003cTResponse\\\u003e, IClock, IScheduler, PollSettings, CancellationToken)\n\n public static TResponse PollRepeatedly\u003cTResponse\u003e(Func\u003cDateTime?, TResponse\u003e pollAction, Predicate\u003cTResponse\u003e completionPredicate, IClock clock, IScheduler scheduler, PollSettings pollSettings, CancellationToken cancellationToken)\n\nRepeatedly calls the specified polling action, delaying between calls,\nuntil a given condition is met in the response."]]