@@ -25,7 +25,7 @@ module Streamly.Streams.Parallel
25 , parallel
25 , parallel
26 , parallelEndByFirst
26 , parallelEndByFirst
27 , parallelEndByAny
27 , parallelEndByAny
30 -- * Function application
30 -- * Function application
31 , mkParallel
31 , mkParallel
@@ -267,7 +267,7 @@ handleChildException _sv e = do
270−-- > S.drain $ S.tee (S.mapM_ print) (S.enumerateFromTo 1 2)
270+-- > S.drain $ S.tapAsync (S.mapM_ print) (S.enumerateFromTo 1 2)
@@ -282,9 +282,9 @@ handleChildException _sv e = do
282-- Compare with 'tap'.
282-- Compare with 'tap'.
284-- @since 0.7.0
284-- @since 0.7.0
285−{-# INLINE tee #-}
285+{-# INLINE tapAsync #-}
286−tee :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> t m a
286+tapAsync :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> t m a
287−tee f m = mkStream $ \st yld sng stp -> do
287+tapAsync f m = mkStream $ \st yld sng stp -> do
288 -- Buffer size for the SVar is derived from the current state
288 -- Buffer size for the SVar is derived from the current state
289 sv <- newParallelVar StopNone (adaptState st)
289 sv <- newParallelVar StopNone (adaptState st)
290 -- XXX exception handling
290 -- XXX exception handling