From 64c5b43d23951d0e539689847b683e844ea9d378 Mon Sep 17 00:00:00 2001 From: Jens Nolte <git@queezle.net> Date: Wed, 11 Aug 2021 23:42:38 +0200 Subject: [PATCH] Fix documentation Co-authored-by: Jan Beinke <git@janbeinke.com> --- src/Quasar/Core.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Quasar/Core.hs b/src/Quasar/Core.hs index 096d144..ef45823 100644 --- a/src/Quasar/Core.hs +++ b/src/Quasar/Core.hs @@ -103,8 +103,8 @@ instance IsDisposable ResourceManager where -- | A task that is running asynchronously. It has a result and can fail. --- The result (or exception) can be aquired by using the `Awaitable` class (e.g. by calling `await` or `awaitIO`). --- It might be possible to cancel the task by using the `Disposable` class if the operation has not been completed. +-- The result (or exception) can be aquired by using the `IsAwaitable` class (e.g. by calling `await` or `awaitIO`). +-- It might be possible to cancel the task by using the `IsDisposable` class if the operation has not been completed. -- If the result is no longer required the task should be cancelled, to avoid leaking memory. newtype Task r = Task (Awaitable r) -- GitLab