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

Add some documentation

parent 64c5b43d
No related branches found
No related tags found
No related merge requests found
......@@ -255,8 +255,10 @@ boundDisposable action = do
resourceManager <- askResourceManager
attachDisposeAction resourceManager action
-- | Creates an `Disposable` that is bound to a ResourceManager. It will automatically be disposed when the resource manager is disposed.
attachDisposeAction :: MonadIO m => ResourceManager -> IO (Awaitable ()) -> m Disposable
attachDisposeAction = undefined
-- | Attaches a dispose action to a ResourceManager. It will automatically be run when the resource manager is disposed.
attachDisposeAction_ :: MonadIO m => ResourceManager -> IO (Awaitable ()) -> m ()
attachDisposeAction_ resourceManager action = void $ attachDisposeAction resourceManager action
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