创建一个对象,该对象在指定线程上计划工作单元。
Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (
语法
'Declaration
Public Sub New ( _
threadFactory As Func(Of ThreadStart, Thread) _
)
'Usage
Dim threadFactory As Func(Of ThreadStart, Thread)
Dim instance As New EventLoopScheduler(threadFactory)
public EventLoopScheduler(
Func<ThreadStart, Thread> threadFactory
)
public:
EventLoopScheduler(
Func<ThreadStart^, Thread^>^ threadFactory
)
new :
threadFactory:Func<ThreadStart, Thread> -> EventLoopScheduler
public function EventLoopScheduler(
threadFactory : Func<ThreadStart, Thread>
)
参数
- threadFactory
类型: System.Func<ThreadStart、 Thread>
用于创建线程的工厂函数。