NewThreadScheduler Constructor (Func<ThreadStart, Thread>)
Creates an object that schedules each unit of work on a separate thread.
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Sub New ( _
threadFactory As Func(Of ThreadStart, Thread) _
)
'Usage
Dim threadFactory As Func(Of ThreadStart, Thread)
Dim instance As New NewThreadScheduler(threadFactory)
public NewThreadScheduler(
Func<ThreadStart, Thread> threadFactory
)
public:
NewThreadScheduler(
Func<ThreadStart^, Thread^>^ threadFactory
)
new :
threadFactory:Func<ThreadStart, Thread> -> NewThreadScheduler
public function NewThreadScheduler(
threadFactory : Func<ThreadStart, Thread>
)
Parameters
- threadFactory
Type: System.Func<ThreadStart, Thread>
The factory function for thread creation.