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
f01d1fd9
Commit
f01d1fd9
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Remove outdated TODOs
parent
80b9c54e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2535
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Quasar/ResourceManager.hs
+0
-9
0 additions, 9 deletions
src/Quasar/ResourceManager.hs
with
0 additions
and
9 deletions
src/Quasar/ResourceManager.hs
+
0
−
9
View file @
f01d1fd9
...
@@ -54,14 +54,6 @@ import Quasar.Prelude
...
@@ -54,14 +54,6 @@ import Quasar.Prelude
import
Quasar.Utils.Exceptions
import
Quasar.Utils.Exceptions
-- TODO replacement for MonadAsync scheduler
--scheduleAfter :: MonadScheduler m => Awaitable a -> (a -> SchedulerIO (Awaitable b)) -> m (Awaitable b)
--scheduleAfter' :: Awaitable a -> (a -> SchedulerIO b) -> m (Awaitable b)
--scheduleAfter_ :: Awaitable a -> (a -> IO ()) -> m ()
data
DisposeException
=
DisposeException
SomeException
data
DisposeException
=
DisposeException
SomeException
deriving
stock
Show
deriving
stock
Show
...
@@ -190,7 +182,6 @@ liftResourceManagerIO action = do
...
@@ -190,7 +182,6 @@ liftResourceManagerIO action = do
captureDisposable
::
MonadResourceManager
m
=>
m
a
->
m
(
a
,
Disposable
)
captureDisposable
::
MonadResourceManager
m
=>
m
a
->
m
(
a
,
Disposable
)
captureDisposable
action
=
do
captureDisposable
action
=
do
-- TODO improve performance by only creating a new resource manager when two or more disposables are attached
resourceManager
<-
newResourceManager
resourceManager
<-
newResourceManager
result
<-
localResourceManager
resourceManager
action
result
<-
localResourceManager
resourceManager
action
pure
$
(
result
,
toDisposable
resourceManager
)
pure
$
(
result
,
toDisposable
resourceManager
)
...
...
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