diff --git a/src/Quasar/Core.hs b/src/Quasar/Core.hs index 096d1448555116ab19ab7905ded90915ed84b4a6..ef458232b5a4e52f570a624c6823e2b797475663 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)