- dispatch :: (RoomGroup c, ClaimContext c, Prioritized (ClaimHandle c)) => c -> IO a -> IO (TaskHandle (Priority (ClaimHandle c)) a)
- data TaskHandle p a
- reprioritize :: Prioritized p => p -> (Priority p -> Priority p) -> STM ()
- getResult :: TaskHandle p a -> STM a
- tryGetResult :: TaskHandle p a -> STM (Maybe a)
Perform a task on another thread. This task can be reprioritized and canceled.