Running a specific Action in the background periodically. (比较适合用于在服务器上面执行周期性的计划任务)
UpdateThread
01 Syntax
Microsoft.VisualBasic.Parallel.Tasks.UpdateThread
02 Methods
03 Properties
04 Members
#ctor(
Int32, Action, String)Running a specific action in the background periodically. The time unit of the parameter Periods is ms or Ticks.
Parameters
| Name | Type | Description |
|---|---|---|
periods | Int32 | ms for update thread sleeps |
updates | Action | - |
Start
运行这条线程,假若更新线程已经在运行了,则会自动忽略这次调用
Stop
停止更新线程的运行
GetTicks(
Int32, Int32, Int32)获取得到总的毫秒数
Parameters
| Name | Type | Description |
|---|---|---|
hh | Int32 | - |
mm | Int32 | - |
ss% | Int32 | - |
Periods
The timer interval, sleeps n ms interval
ErrHandle
If this exception handler is null, then when the unhandled exception occurring, this thread object will throw the exception and then stop working.
Running
指示当前的这个任务处理对象是否处于运行状态
Caller
The caller stack name
ToString()
Dispose()