public sealed class SystemScheduler : ISchedulerSingleton implementation of IScheduler which uses Delay(TimeSpan, CancellationToken).
Implements
ISchedulerNamespace
Google.Api.GaxAssembly
Google.Api.Gax.dll
Properties
Instance
public static SystemScheduler Instance { get; }Retrieves the singleton instance.
| Property Value | |
|---|---|
| Type | Description |
SystemScheduler |
|
Methods
Delay(TimeSpan, CancellationToken)
public Task Delay(TimeSpan timeSpan, 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 |
timeSpan |
TimeSpan |
cancellationToken |
CancellationTokenThe 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. |