Skip to main content

Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>) Method

Schedules an action to be executed after dueTime.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll)

public override IDisposable Schedule<TState>(
TState state,
TimeSpan dueTime,
Func<IScheduler, TState, IDisposable> action
)

Parameters

  TState
State passed to the action to be executed.
  TimeSpan
Relative time after which to execute the action.
  Func(IScheduler, TState, IDisposable)
Action to be executed.

Type Parameters

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, Func(IScheduler, UMP, IDisposable))

See Also

Reference

AvaloniaScheduler Class
Schedule Overload
Avalonia.ReactiveUI Namespace