建立物件,此物件會排程指定執行緒上的工作單位。
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>
執行緒建立的 Factory 函式。