We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab4eb7 commit e289d31Copy full SHA for e289d31
src/Control/Monad/Aff.purs
@@ -73,11 +73,8 @@ cancelWith aff c = runFn3 _cancelWith nonCanceler aff c
73
-- | If you do need to handle exceptions, you can use `runAff` instead, or
74
-- | you can handle the exception within the Aff computation, using
75
-- | `catchError` (or any of the other mechanisms).
76
-launchAff :: forall e a. Aff e a -> Eff (err :: EXCEPTION | e) Unit
77
-launchAff = runAff throwException (const (pure unit)) <<< liftEx
78
- where
79
- liftEx :: Aff e a -> Aff (err :: EXCEPTION | e) a
80
- liftEx = _unsafeInterleaveAff
+launchAff :: forall e a. Aff (err :: EXCEPTION | e) a -> Eff (err :: EXCEPTION | e) Unit
+launchAff = runAff_ throwException (const (pure unit))
81
82
-- | Runs the asynchronous computation. You must supply an error callback and a
83
-- | success callback.
0 commit comments