Sdílet prostřednictvím


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

Parametry typu

  • TState
    Typ argumentu stav.

Parametry

  • state
    Typ: TState
    Stav předaný akci, 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í).

Implementuje

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

Viz také

Reference

CurrentThreadScheduler – třída

Plánování přetížení

System.Reactive.Concurrency – obor názvů