IScheduler.Schedule<TState> – metoda (TState, Func<IScheduler, TState, IDisposable>)
Naplánuje provedení akce.
Obor názvů:System.Reactive.Concurrency
Sestavení: System.Reactive (v System.Reactive.dll)
Syntax
'Declaration
Function Schedule(Of TState) ( _
state As TState, _
action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As IScheduler
Dim state As TState
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable
returnValue = instance.Schedule(state, _
action)
IDisposable Schedule<TState>(
TState state,
Func<IScheduler, TState, IDisposable> action
)
generic<typename TState>
IDisposable^ Schedule(
TState state,
Func<IScheduler^, TState, IDisposable^>^ action
)
abstract Schedule :
state:'TState *
action:Func<IScheduler, 'TState, IDisposable> -> IDisposable
JScript does not support generic types and methods.
Parametry typu
- TState
Typ argumentu stav.
Parametry
- state
Typ: TState
Stav předaný akci, která se má provést.
- action
Typ: System.Func<IScheduler, TState, IDisposable>
Akce, která se má provést.
Návratová hodnota
Typ: System.IDisposable
Jednorázový objekt použitý ke zrušení naplánované akce (maximální úsilí).