Method PeriodicAsync
PeriodicAsync(TimeSpan, Func<CancellationToken, Task>)
Declaration
public static IObservable<Unit> PeriodicAsync(TimeSpan period, Func<CancellationToken, Task> supplier)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | period | |
Func<CancellationToken, Task> | supplier |
Returns
Type | Description |
---|---|
IObservable<Unit> |
PeriodicAsync<T>(TimeSpan, Func<CancellationToken, Task<T>>)
Declaration
public static IObservable<T> PeriodicAsync<T>(TimeSpan period, Func<CancellationToken, Task<T>> supplier)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | period | |
Func<CancellationToken, Task<T>> | supplier |
Returns
Type | Description |
---|---|
IObservable<T> |
Type Parameters
Name | Description |
---|---|
T |