Skip to content

)} )} )}

MauiMacScheduler.Schedule(TState, Func) method

Defined in

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

Applies to

net8.0-ios17.2, net8.0-maccatalyst17.2

Overloads

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

1. Overload

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

View source

Inherited documentation

These docs were inherited from IScheduler. The member doesn't override them on this type.

Summary: Schedules an action to be executed.

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).

2. Overload

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

View source

Inherited documentation

These docs were inherited from IScheduler. The member doesn't override them on this type.

Summary: Schedules an action to be executed at dueTime.

Type parameters

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

Parameters

NameTypeDescription
stateTStateState passed to the action to be executed.
dueTimeDateTimeOffsetAbsolute time at which to execute the action.
actionFuncAction to be executed.

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

3. Overload

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

View source

Inherited documentation

These docs were inherited from IScheduler. The member doesn't override them on this type.

Summary: Schedules an action to be executed after dueTime.

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).