C# Class Platform.TaskUtils

Provides extension methods and static utility methods for ITasks objects.
Afficher le fichier Open project: platformdotnet/Platform

Méthodes publiques

Méthode Description
WaitForAnyTaskState ( this task, System.TimeSpan timeout ) : bool

Waits for a task to reach one or more given states

WaitForAnyTaskState ( this task, System.TimeSpan timeout, Predicate acceptState ) : bool

Waits for a task to reach a given state

WaitForAnyTaskState ( this task ) : void

Waits for a task to reach one or more given states

WaitForAnyTaskState ( this task, Predicate acceptState ) : void

Waits for a task to reach a given state

WaitForFinish ( this task ) : void

Method Details

WaitForAnyTaskState() public static méthode

Waits for a task to reach one or more given states
public static WaitForAnyTaskState ( this task, System.TimeSpan timeout ) : bool
task this The task to wait on
timeout System.TimeSpan A timeout
Résultat bool

WaitForAnyTaskState() public static méthode

Waits for a task to reach a given state
public static WaitForAnyTaskState ( this task, System.TimeSpan timeout, Predicate acceptState ) : bool
task this The task to wait on
timeout System.TimeSpan A timeout
acceptState Predicate A predicate that validates for a given state
Résultat bool

WaitForAnyTaskState() public static méthode

Waits for a task to reach one or more given states
public static WaitForAnyTaskState ( this task ) : void
task this The task to wait on
Résultat void

WaitForAnyTaskState() public static méthode

Waits for a task to reach a given state
public static WaitForAnyTaskState ( this task, Predicate acceptState ) : void
task this The task to wait on
acceptState Predicate A predicate that validates for a given state
Résultat void

WaitForFinish() public static méthode

public static WaitForFinish ( this task ) : void
task this
Résultat void