Scheduler.SchedulePeriodic(IScheduler, TState, TimeSpan, Func) method¶
Defined in
Type: Scheduler
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
net8.0, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0
Overloads¶
- 1.
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Func<TState, TState> action) - 2.
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Action<TState> action) - 3.
public static IDisposable SchedulePeriodic(this IScheduler scheduler, TimeSpan period, Action action)
1. Overload¶
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Func<TState, TState> action)
Type parameters
| Name | Description |
|---|---|
TState | -- |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
state | TState | -- |
period | TimeSpan | -- |
action | Func | -- |
Returns: IDisposable
2. Overload¶
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Action<TState> action)
Type parameters
| Name | Description |
|---|---|
TState | -- |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
state | TState | -- |
period | TimeSpan | -- |
action | Action | -- |
Returns: IDisposable
3. Overload¶
public static IDisposable SchedulePeriodic(this IScheduler scheduler, TimeSpan period, Action action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
period | TimeSpan | -- |
action | Action | -- |
Returns: IDisposable