Skip to content

)} )}

MauiWinUIScheduler.Schedule(TState, Func) method

Defined in

Type: MauiWinUIScheduler Namespace: System.Reactive.Concurrency Assembly: ReactiveMarbles.ViewModel.MAUI.dll

Applies to

net8.0-windows10.0.19041

Overloads

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

1. Overload

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

View source

Summary: Schedules an action to be executed on the dispatcher.

Type parameters

NameDescription
TStateThe type of the state passed to the scheduled action.

Parameters

NameTypeDescription
stateTStateState passed to the action to be executed.
actionFuncAction to be executed.

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

Exceptions

TypeCondition
System.ArgumentNullExceptionaction is null.

2. Overload

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

View source

Summary: Schedules an action to be executed after dueTime on the dispatcherQueue, using a DispatcherQueueTimer object.

Type parameters

NameDescription
TStateThe type of the state passed to the scheduled action.

Parameters

NameTypeDescription
stateTStateState passed to the action to be executed.
dueTimeTimeSpanRelative time after which to execute the action.
actionFuncAction to be executed.

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

Exceptions

TypeCondition
System.ArgumentNullExceptionaction is null.