priority-sync-0.1.0.0: Task prioritization.Source codeContentsIndex
Control.Concurrent.Priority.RoomConstraint
Synopsis
class RoomConstraint u where
approveConstraint :: Claim a -> u -> STM ()
newtype MaxThreads = MaxThreads Int
approveClaims :: RoomConstraint u => [Claim u] -> STM ()
Documentation
class RoomConstraint u whereSource
Methods
approveConstraint :: Claim a -> u -> STM ()Source
Should either approve or retry each claim.
show/hide Instances
newtype MaxThreads Source
A maximum limit on the number of threads allowed to claim a room.
Constructors
MaxThreads Int
show/hide Instances
approveClaims :: RoomConstraint u => [Claim u] -> STM ()Source
approve some claims according to their constraints.
Produced by Haddock version 2.4.2