Skip to content

Commit 2dc3c8c

Browse files
committed
Fix misleading documentation mentioning "threads"
1 parent 8b01078 commit 2dc3c8c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/Control.Monad.Aff.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ Converts the asynchronous computation into a synchronous one. All values
8686
are ignored, and if the computation produces an error, it is thrown.
8787

8888
Catching exceptions by using `catchException` with the resulting Eff
89-
computation is not recommended, as exceptions may end up being thrown in
90-
a different thread, due to the asynchronous nature of Aff. In such a
91-
case, the exception cannot be caught.
89+
computation is not recommended, as exceptions may end up being thrown
90+
asynchronously, in which case they cannot be caught.
9291

9392
If you do need to handle exceptions, you can use `runAff` instead, or
9493
you can handle the exception within the Aff computation, using

src/Control/Monad/Aff.purs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ module Control.Monad.Aff
6868
-- | are ignored, and if the computation produces an error, it is thrown.
6969
-- |
7070
-- | Catching exceptions by using `catchException` with the resulting Eff
71-
-- | computation is not recommended, as exceptions may end up being thrown in
72-
-- | a different thread, due to the asynchronous nature of Aff. In such a
73-
-- | case, the exception cannot be caught.
71+
-- | computation is not recommended, as exceptions may end up being thrown
72+
-- | asynchronously, in which case they cannot be caught.
7473
-- |
7574
-- | If you do need to handle exceptions, you can use `runAff` instead, or
7675
-- | you can handle the exception within the Aff computation, using

0 commit comments

Comments
 (0)