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, netstandard2.0
Overloads¶
-
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Func<TState, TState> action) -
public static IDisposable SchedulePeriodic<TState>(this IScheduler scheduler, TState state, TimeSpan period, Action<TState> action) -
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