C# Class Cocktail.CoroutineFns

A collection of IResult extension methods.
Afficher le fichier Open project: IdeaBlade/Punch

Méthodes publiques

Méthode Description
AsTask ( this source, Caliburn.Micro.CoroutineExecutionContext context = null ) : System.Threading.Tasks.Task

Extension method to convert an IResult to Task

Execute ( this result, Action callback = null ) : void

Executes a result with optional callback upon completion.

ToSequentialResult ( this results ) : IResult

Returns an implementation of IResult that enables sequential execution of multiple results.

Method Details

AsTask() public static méthode

Extension method to convert an IResult to Task
public static AsTask ( this source, Caliburn.Micro.CoroutineExecutionContext context = null ) : System.Threading.Tasks.Task
source this The IResult to be converted.
context Caliburn.Micro.CoroutineExecutionContext Optional execution context.
Résultat System.Threading.Tasks.Task

Execute() public static méthode

Executes a result with optional callback upon completion.
public static Execute ( this result, Action callback = null ) : void
result this The result to execute
callback Action Optional callback
Résultat void

ToSequentialResult() public static méthode

Returns an implementation of IResult that enables sequential execution of multiple results.
public static ToSequentialResult ( this results ) : IResult
results this The results to be executed sequentially
Résultat IResult