Send feedback
Interface IScheduler (4.3.1)
Stay organized with collections
Save and categorize content based on your preferences.
public interface IScheduler
Abstraction of scheduler-like operations, used for testability.
Namespace
Google Google.Api Gax
Assembly
Google.Api.Gax.dll
Methods
Delay(TimeSpan, CancellationToken)
Task Delay(TimeSpan delay, CancellationToken cancellationToken)
Returns a task which will complete after the given delay. Whether the returned
awaitable is configured to capture the current context or not is implementation-specific.
(A test implementation may capture the current context to enable reliable testing.)
Parameters
Name Description delay
TimeSpan
Time to delay for. Must not be negative.
cancellationToken
CancellationToken
The cancellation token that will be checked prior to completing the returned task.
Returns
Type Description Task
A task which will complete after the given delay.
Extension Method
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?