计划以递归方式执行的操作。
Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function Schedule(Of TState) ( _
scheduler As IScheduler, _
state As TState, _
action As Action(Of TState, Action(Of TState)) _
) As IDisposable
'Usage
Dim scheduler As IScheduler
Dim state As TState
Dim action As Action(Of TState, Action(Of TState))
Dim returnValue As IDisposable
returnValue = scheduler.Schedule(state, _
action)
public static IDisposable Schedule<TState>(
this IScheduler scheduler,
TState state,
Action<TState, Action<TState>> action
)
[ExtensionAttribute]
public:
generic<typename TState>
static IDisposable^ Schedule(
IScheduler^ scheduler,
TState state,
Action<TState, Action<TState>^>^ action
)
static member Schedule :
scheduler:IScheduler *
state:'TState *
action:Action<'TState, Action<'TState>> -> IDisposable
JScript does not support generic types and methods.
类型参数
- TState
状态参数类型。
parameters
- scheduler
类型: System.Reactive.Concurrency.IScheduler
要执行递归操作的计划程序。
- state
类型:TState
传递给要执行的操作的状态。
- action
类型: System.Action<TState、 Action<TState>>
要以递归方式执行的操作。
返回值
类型: System.IDisposable
用于取消计划操作的可释放对象 (尽最大努力) 。
使用说明
在 Visual Basic 和 C# 中,可以在 IScheduler 类型的任何对象上将此方法作为实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。