IScheduler.Schedule<TState-Methode> (TState, Func<IScheduler, TState, IDisposable>)
Plant die Ausführung einer Aktion.
Namespace:System.Reactive.Concurrency
Versammlung: System.Reactive (in 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.
Typparameter
- TState
Der State-Argumenttyp.
Parameter
- state
Typ: TState
Der an die auszuführende Aktion übergebene Status.
- action
Typ: System.Func<IScheduler, TState, IDisposable>
Die auszuführende Aktion.
Rückgabewert
Typ: System.IDisposable
Das verwerfbare Objekt, das verwendet wird, um die geplante Aktion abzubrechen (beste Leistung).