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
fd781fd6
Commit
fd781fd6
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Add registerAsyncDisposeAction
Co-authored-by:
Jan Beinke
<
git@janbeinke.com
>
parent
f643c2ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2557
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Quasar/ResourceManager.hs
+4
-0
4 additions, 0 deletions
src/Quasar/ResourceManager.hs
with
4 additions
and
0 deletions
src/Quasar/ResourceManager.hs
+
4
−
0
View file @
fd781fd6
...
...
@@ -8,6 +8,7 @@ module Quasar.ResourceManager (
registerNewResource_
,
registerDisposable
,
registerDisposeAction
,
registerAsyncDisposeAction
,
withScopedResourceManager
,
onResourceManager
,
captureDisposable
,
...
...
@@ -133,6 +134,9 @@ registerDisposable disposable = do
registerDisposeAction
::
MonadResourceManager
m
=>
IO
()
->
m
()
registerDisposeAction
disposeAction
=
mask_
$
registerDisposable
=<<
newDisposable
disposeAction
registerAsyncDisposeAction
::
MonadResourceManager
m
=>
IO
()
->
m
()
registerAsyncDisposeAction
disposeAction
=
mask_
$
registerDisposable
=<<
newAsyncDisposable
disposeAction
-- | Locks the resource manager (which may fail), runs the computation and registeres the resulting disposable.
--
-- The computation will be run in masked state.
...
...
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