C# Class Austin.LibTaskNet.CoopScheduler

Mostra file Open project: AustinWise/LibTaskNet

Public Methods

Method Description
AddTask ( Func task ) : void

Creates a new task and schedules it to run.

StartScheduler ( ) : void

Starts executing tasks and does not return until all tasks have completed execution.

If a scheduled task throws an exception, it will be raised here. If no tasks are scheduled, an exception will be thrown.

Private Methods

Method Description
CompleteTask ( ) : void
CompleteTask ( Task t ) : void
StartTask ( ) : void

Method Details

AddTask() public static method

Creates a new task and schedules it to run.
public static AddTask ( Func task ) : void
task Func
return void

StartScheduler() public static method

Starts executing tasks and does not return until all tasks have completed execution.
If a scheduled task throws an exception, it will be raised here. If no tasks are scheduled, an exception will be thrown.
public static StartScheduler ( ) : void
return void