Scheduler.schedule

Method used to execute new task.

If there are idle worker fibers, the task will be executed immediately and this method will only return when that task first calls suspend.

If all workers are busy, the task will be added to the queue and this method will return immediately.

Parameters

task Task

derivative from ocean.task.Task defining some application task to execute

Throws

TaskQueueFullException if task queue is at full capacity

Meta