tremulous-query-1.0.2: Library for polling Tremulous servers

Network.Tremulous.Scheduler

Documentation

type Event id a = (MicroTime, id, a)Source

data (Eq id, Ord id) => Scheduler id a Source

newScheduler :: (Eq a, Ord a) => Int -> (Scheduler a b -> a -> b -> IO ()) -> Maybe (IO ()) -> IO (Scheduler a b)Source

startScheduler :: (Ord id, Eq id, Show id) => Scheduler id a -> IO ()Source

addScheduled :: (Ord id, Eq id, Show id) => Scheduler id a -> Event id a -> IO ()Source

addScheduledBatch :: (Ord id, Eq id, Foldable f) => Scheduler id a -> f (Event id a) -> IO ()Source

addScheduledInstant :: (Ord id, Eq id, Foldable f) => Scheduler id a -> f (id, a) -> IO ()Source

deleteScheduled :: (Ord id, Eq id) => Scheduler id a -> id -> IO ()Source