计划要执行的操作。
Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (
语法
'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.
类型参数
- TState
状态参数类型。
parameters
- state
类型:TState
传递给要执行的操作的状态。
- action
类型: System.Func<IScheduler、TState、 IDisposable>
要执行的操作。
返回值
类型: System.IDisposable
用于取消计划操作的可释放对象 (尽最大努力) 。