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)
- C#
- VB
- F#
public override IDisposable Schedule<TState>(
TState state,
TimeSpan dueTime,
Func<IScheduler, TState, IDisposable> action
)
Public Overrides Function Schedule(Of TState) (
state As TState,
dueTime As TimeSpan,
action As Func(Of IScheduler, TState, IDisposable)
) As IDisposable
abstract Schedule :
state : 'TState *
dueTime : TimeSpan *
action : Func<IScheduler, 'TState, IDisposable> -> IDisposable
override Schedule :
state : 'TState *
dueTime : TimeSpan *
action : Func<IScheduler, 'TState, IDisposable> -> IDisposable
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