Skip to content
Snippets Groups Projects
Commit e3635548 authored by Jens Nolte's avatar Jens Nolte
Browse files

Documentation

parent 93ea492e
No related branches found
No related tags found
No related merge requests found
......@@ -26,11 +26,10 @@ import Quasar.Prelude
class (MonadAwait m, MonadResourceManager m, MonadMask m) => MonadAsync m where
-- | TODO
async :: m r -> m (Task r)
async action = asyncWithUnmask ($ action)
-- | TODO
-- | TODO: Documentation
--
-- The action will be run with asynchronous exceptions masked and will be passed an action that can be used unmask.
asyncWithUnmask :: ((forall a. m a -> m a) -> m r) -> m (Task r)
......
module Quasar.Awaitable (
-- * Awaitable
MonadAwait(..),
IsAwaitable(..),
Awaitable,
MonadAwait(..),
awaitResult,
peekAwaitable,
successfulAwaitable,
......
......@@ -9,7 +9,6 @@ module Quasar.Timer (
newTimerScheduler,
TimerCancelled,
NegativeTimeJump,
Delay,
newDelay,
......@@ -33,13 +32,6 @@ data TimerCancelled = TimerCancelled
instance Exception TimerCancelled
data NegativeTimeJump = NegativeTimeJump
deriving stock (Eq, Show)
instance Exception NegativeTimeJump
data Timer = Timer {
key :: Unique,
time :: UTCTime,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment