Compartir a través de


Método IScheduler.Schedule<TState (TState> , Func<IScheduler, TState, IDisposable>)

Programa una acción que se va a ejecutar.

Espacio de nombres:System.Reactive.Concurrency
Ensamblaje: System.Reactive (en System.Reactive.dll)

Sintaxis

'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.

Parámetros de tipo

  • TState
    Tipo de argumento de estado.

Parámetros

  • state
    Tipo: TState
    Estado pasado a la acción que se va a ejecutar.

Valor devuelto

Tipo: System.IDisposable
Objeto descartable utilizado para cancelar la acción programada (mejor esfuerzo).

Consulte también

Referencia

IScheduler (Interfaz)

Sobrecarga de programación

Espacio de nombres System.Reactive.Concurrency