@@ -17,7 +17,7 @@ module Streamly.Internal.Data.Fold.Concurrent.Channel
19 -- * Fold operations
19 -- * Fold operations
20− , evalWith
20+ , parEval
@@ -42,9 +42,9 @@ import Streamly.Internal.Data.Stream.Channel.Types
42-- | Evaluate the fold asynchronously in a worker thread separate from the
42-- | Evaluate the fold asynchronously in a worker thread separate from the
43-- driver thread.
43-- driver thread.
45−{-# INLINABLE evalWith #-}
45+{-# INLINABLE parEval #-}
46−evalWith :: MonadAsync m => (Config -> Config) -> Fold m a b -> Fold m a b
46+parEval :: MonadAsync m => (Config -> Config) -> Fold m a b -> Fold m a b
47−evalWith modifier f =
47+parEval modifier f =
48 Fold step initial extract
48 Fold step initial extract
@@ -79,7 +79,7 @@ evalWith modifier f =
79 $ withDiagMVar
79 $ withDiagMVar
80 (svarInspectMode chan)
80 (svarInspectMode chan)
81 (dumpSVar chan)
81 (dumpSVar chan)
82− "evalWith: waiting to drain"
82+ "parEval: waiting to drain"
83 $ takeMVar (outputDoorBellFromConsumer chan)
83 $ takeMVar (outputDoorBellFromConsumer chan)
84 -- XXX remove recursion
84 -- XXX remove recursion
85 extract chan
85 extract chan