NewThreadScheduler – konstruktor (Func<ThreadStart, Thread>)
Vytvoří objekt, který naplánuje každou jednotku práce v samostatném vlákně.
Obor názvů:System.Reactive.Concurrency
Sestavení: System.Reactive (v System.Reactive.dll)
Syntaxe
'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>
Funkce factory pro vytvoření vlákna.