priority-sync-0.2.1.1: Cooperative task prioritization.

PrioritySync.Internal.Prioritized

Synopsis

Documentation

class Prioritized p whereSource

Reprioritize a task. This has no effect on a target that has already left the queue.

Associated Types

type Priority p :: *Source

Methods

reprioritize :: p -> (Priority p -> Priority p) -> STM ()Source

Instances

Prioritized p => Prioritized (Maybe p) 
Ord a => Prioritized (TaskHandle a) 
Prioritized (TaskHandle p a)

Change the priority of a task. This will not work if the task has already started.