Skip to content

Commit

Permalink
use launchAff_
Browse files Browse the repository at this point in the history
  • Loading branch information
safareli committed Apr 10, 2018
1 parent 91fb63f commit 316ffd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Control/Monad/Aff/Bus.purs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ module Control.Monad.Aff.Bus

import Prelude

import Control.Lazy (fix)
import Control.Monad.Aff (Aff, attempt, runAff_)
import Control.Monad.Aff (Aff, attempt, launchAff_)
import Control.Monad.Aff.AVar (AVAR, AVar, killVar, makeEmptyVar, putVar, takeVar)
import Control.Monad.Eff.AVar as EffAvar
import Control.Monad.Eff.Class (class MonadEff, liftEff)
Expand Down Expand Up @@ -67,7 +66,7 @@ make = liftEff do
putVar mempty consumers
sequence_ (foldl (\xs a → putVar res a : xs) mempty vars)
loop
runAff_ (const $ pure unit) loop
launchAff_ loop

pure $ Bus cell consumers

Expand Down

0 comments on commit 316ffd9

Please sign in to comment.