NewThreadScheduler, constructeur (Func<ThreadStart, Thread>)
Crée un objet qui planifie chaque unité de travail sur un thread distinct.
Espace de noms :System.Reactive.Concurrency
Assemblée: System.Reactive (en 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>
)
Paramètres
- threadFactory
Type : System.Func<ThreadStart, Thread>
Fonction de fabrique pour la création de threads.