Freigeben über


VirtualTimeSchedulerBase<TAbsolute, TRelative>. 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
Public Function Schedule(Of TState) ( _
    state As TState, _
    action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As VirtualTimeSchedulerBase
Dim state As TState
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable

returnValue = instance.Schedule(state, _
    action)
public IDisposable Schedule<TState>(
    TState state,
    Func<IScheduler, TState, IDisposable> action
)
public:
generic<typename TState>
virtual IDisposable^ Schedule(
    TState state, 
    Func<IScheduler^, TState, IDisposable^>^ action
) sealed
abstract Schedule : 
        state:'TState * 
        action:Func<IScheduler, 'TState, IDisposable> -> IDisposable 
override 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.

Rückgabewert

Typ: System.IDisposable
Das verwerfbare Objekt, das verwendet wird, um die geplante Aktion abzubrechen (beste Leistung).

Implementiert

IScheduler.Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>)

Weitere Informationen

Verweis

VirtualTimeSchedulerBase<TAbsolute, TRelative-Klasse>

Zeitplanüberladung

System.Reactive.Concurrency-Namespace