Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
quasar
Commits
e3635548
Commit
e3635548
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Documentation
parent
93ea492e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Quasar/Async.hs
+1
-2
1 addition, 2 deletions
src/Quasar/Async.hs
src/Quasar/Awaitable.hs
+1
-1
1 addition, 1 deletion
src/Quasar/Awaitable.hs
src/Quasar/Timer.hs
+0
-8
0 additions, 8 deletions
src/Quasar/Timer.hs
with
2 additions
and
11 deletions
src/Quasar/Async.hs
+
1
−
2
View file @
e3635548
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/Quasar/Awaitable.hs
+
1
−
1
View file @
e3635548
module
Quasar.Awaitable
(
-- * Awaitable
MonadAwait
(
..
),
IsAwaitable
(
..
),
Awaitable
,
MonadAwait
(
..
),
awaitResult
,
peekAwaitable
,
successfulAwaitable
,
...
...
This diff is collapsed.
Click to expand it.
src/Quasar/Timer.hs
+
0
−
8
View file @
e3635548
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment