ReactiveExtensions.ScheduleSafe(IScheduler?, Action) method¶
Defined in
Type: ReactiveExtensions
Namespace: ReactiveUI.Extensions
Assembly: ReactiveUI.Extensions.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Overloads¶
- 1.
public static IDisposable ScheduleSafe(this IScheduler? scheduler, Action action) - 2.
public static IDisposable ScheduleSafe(this IScheduler? scheduler, TimeSpan dueTime, Action action)
1. Overload¶
public static IDisposable ScheduleSafe(this IScheduler? scheduler, Action action)
Summary: Schedules an action immediately if scheduler null, else on scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler?](# | Scheduler. |
action | Action | Action. |
Returns: IDisposable -- Disposable for the scheduled action.
2. Overload¶
public static IDisposable ScheduleSafe(this IScheduler? scheduler, TimeSpan dueTime, Action action)
Summary: Schedules an action after a due time.
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler?](# | Scheduler. |
dueTime | TimeSpan | Delay. |
action | Action | Action. |
Returns: IDisposable -- Disposable for the scheduled action.