AvaloniaSchedulerScheduleTState(TState, TimeSpan, FuncIScheduler, TState, IDisposable) Method

Schedules an action to be executed after dueTime.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll) Version: 11.3.999
public override IDisposable Schedule<TState>(
	TState state,
	TimeSpan dueTime,
	Func<IScheduler, TState, IDisposable> action
)

Parameters

state  TState
State passed to the action to be executed.
dueTime  TimeSpan
Relative time after which to execute the action.
action  FuncIScheduler, TState, IDisposable
Action to be executed.

Type Parameters

TState
The type of the state passed to the scheduled action.

Return Value

IDisposable
The disposable object used to cancel the scheduled action (best effort).

Implements

IScheduler.Schedule``1(UMP, TimeSpan, FuncIScheduler, UMP, IDisposable)

See Also