实例化一个数据处理对象
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public SoftMultiTask(
T[] dataList,
Func<T, bool> operater,
int threadCount = 10
)
Public Sub New (
dataList As T(),
operater As Func(Of T, Boolean),
Optional threadCount As Integer = 10
)
public:
SoftMultiTask(
array<T>^ dataList,
Func<T, bool>^ operater,
int threadCount = 10
)
new :
dataList : 'T[] *
operater : Func<'T, bool> *
?threadCount : int
(* Defaults:
let _threadCount = defaultArg threadCount 10
*)
-> SoftMultiTask
参数
- dataList
- 类型:T
数据处理列表 - operater
- 类型:SystemFuncT, Boolean
数据操作方法,应该是相对耗时的任务 - threadCount (Optional)
- 类型:SystemInt32
需要使用的线程数
参见