LoopActionCreateLoopAction(Int32, Int32, ActionLoopAction) 方法
创建并返回一个 LoopAction 实例,该实例将在指定次数和以毫秒为单位的间隔下执行给定的异步操作。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public static LoopAction CreateLoopAction(
int count,
int intervalMS,
Action<LoopAction> action
)
Public Shared Function CreateLoopAction (
count As Integer,
intervalMS As Integer,
action As Action(Of LoopAction)
) As LoopAction
static member CreateLoopAction :
count : int *
intervalMS : int *
action : Action<LoopAction> -> LoopAction
- count Int32
- 循环执行次数。
- intervalMS Int32
- 两次执行操作之间的间隔时间(毫秒)。
- action ActionLoopAction
- 要执行的异步操作。
LoopAction一个新的 LoopAction 实例。