C# Класс Austin.LibTaskNet.CoopScheduler

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CompleteTask ( ) : void
CompleteTask ( Task t ) : void
StartTask ( ) : void

Описание методов

AddTask() публичный статический Метод

Creates a new task and schedules it to run.
public static AddTask ( Func task ) : void
task Func
Результат void

StartScheduler() публичный статический Метод

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
Результат void