priority-sync-0.2.1.1: Cooperative task prioritization.

PrioritySync.Internal.Schedule

Synopsis

Documentation

data Schedule p c Source

Schedule a task to run from a prioritized Queue. The task will wait until it arrives at (or, with failover, near) the top of queue. Typical usage:

 Schedule q 2 room1

Only the rooms inside the Schedule declaration are claimed with scheduling. If access to a room doesn't need to be prioritized, it can be set outside the schedule:

 (Schedule q 2 room1,room2)

Constructors

Schedule (Queue p) p c 

Instances