Scheduler.Schedule(IScheduler, Action) method¶
Defined in
Type: Scheduler Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll
Applies to
netstandard2.0, net472
Overloads¶
public static IDisposable Schedule(this IScheduler scheduler, Action<Action> action)public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, Action<TState, Action<TState>> action)public static IDisposable Schedule(this IScheduler scheduler, TimeSpan dueTime, Action<Action<TimeSpan>> action)public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, TimeSpan dueTime, Action<TState, Action<TState, TimeSpan>> action)public static IDisposable Schedule(this IScheduler scheduler, DateTimeOffset dueTime, Action<Action<DateTimeOffset>> action)public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, DateTimeOffset dueTime, Action<TState, Action<TState, DateTimeOffset>> action)public static IDisposable Schedule(this IScheduler scheduler, Action action)public static IDisposable Schedule(this IScheduler scheduler, TimeSpan dueTime, Action action)public static IDisposable Schedule(this IScheduler scheduler, DateTimeOffset dueTime, Action action)
1. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, Action<Action> action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
2. Overload¶
public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, Action<TState, Action<TState>> action)
Type parameters
| Name | Description |
|---|---|
TState | -- |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
state | TState | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
3. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, TimeSpan dueTime, Action<Action<TimeSpan>> action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
dueTime | TimeSpan (opens in a new tab) | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
4. Overload¶
public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, TimeSpan dueTime, Action<TState, Action<TState, TimeSpan>> action)
Type parameters
| Name | Description |
|---|---|
TState | -- |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
state | TState | -- |
dueTime | TimeSpan (opens in a new tab) | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
5. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, DateTimeOffset dueTime, Action<Action<DateTimeOffset>> action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
dueTime | DateTimeOffset (opens in a new tab) | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
6. Overload¶
public static IDisposable Schedule<TState>(this IScheduler scheduler, TState state, DateTimeOffset dueTime, Action<TState, Action<TState, DateTimeOffset>> action)
Type parameters
| Name | Description |
|---|---|
TState | -- |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
state | TState | -- |
dueTime | DateTimeOffset (opens in a new tab) | -- |
action | Action | -- |
Returns: IDisposable (opens in a new tab)
7. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, Action action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
action | Action (opens in a new tab) | -- |
Returns: IDisposable (opens in a new tab)
8. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, TimeSpan dueTime, Action action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
dueTime | TimeSpan (opens in a new tab) | -- |
action | Action (opens in a new tab) | -- |
Returns: IDisposable (opens in a new tab)
9. Overload¶
public static IDisposable Schedule(this IScheduler scheduler, DateTimeOffset dueTime, Action action)
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | -- |
dueTime | DateTimeOffset (opens in a new tab) | -- |
action | Action (opens in a new tab) | -- |
Returns: IDisposable (opens in a new tab)