VirtualTimeSchedulerBase<TAbsolute, TRelative>. Метод ScheduleRelative<TState>
Планирует выполнение действия в dueTime.
Пространство имен:System.Reactive.Concurrency
Сборки: System.Reactive (в System.Reactive.dll)
Синтаксис
'Declaration
Public Function ScheduleRelative(Of TState) ( _
state As TState, _
dueTime As TRelative, _
action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As VirtualTimeSchedulerBase
Dim state As TState
Dim dueTime As TRelative
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable
returnValue = instance.ScheduleRelative(state, _
dueTime, action)
public IDisposable ScheduleRelative<TState>(
TState state,
TRelative dueTime,
Func<IScheduler, TState, IDisposable> action
)
public:
generic<typename TState>
IDisposable^ ScheduleRelative(
TState state,
TRelative dueTime,
Func<IScheduler^, TState, IDisposable^>^ action
)
member ScheduleRelative :
state:'TState *
dueTime:'TRelative *
action:Func<IScheduler, 'TState, IDisposable> -> IDisposable
JScript does not support generic types and methods.
Параметры типа
- TState
Тип аргумента состояния.
Параметры
- Состояние
Тип: TState
Состояние, переданное в выполняемое действие.
- dueTime
Тип: TRelative
Относительное время, по истечении которого выполняется действие.
- action
Тип: System.Func<IScheduler, TState, IDisposable>
Выполняемая действие.
Возвращаемое значение
Тип: System.IDisposable
Объект IDisposable, используемый для отмены запланированного действия (наилучшие усилия).