NewThreadScheduler, konstruktor (Func<ThreadStart, Thread>)
Tworzy obiekt, który planuje każdą jednostkę pracy w osobnym wątku.
Przestrzeń nazw:System.Reactive.Concurrency
Zestawu: System.Reactive (w System.Reactive.dll)
Składnia
'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>
)
Parametry
- threadFactory
Typ: System.Func<ThreadStart, Thread>
Funkcja fabryki na potrzeby tworzenia wątków.