@@ -71,8 +71,8 @@ module Streamly.Internal.Data.Stream.Channel.Types
7171 , maxThreads
7272 , maxBuffer
7373 , maxYields
74− , inspectMode
75− , eagerEval
74+ , inspect
75+ , eager
7676 , stopWhen
7777 , ordered
7878 , interleaved
@@ -340,7 +340,7 @@ data Config = Config
340340 -- XXX these two can be collapsed into a single type
341341 , _streamLatency :: Maybe NanoSecond64 -- bootstrap latency
342342 , _maxStreamRate :: Maybe Rate
343− , _inspectMode :: Bool
343+ , _inspect :: Bool
344344 , _eagerDispatch :: Bool
345345 , _stopWhen :: StopWhen
346346 , _ordered :: Bool
@@ -373,7 +373,7 @@ defaultConfig = Config
373373 , _bufferHigh = defaultMaxBuffer
374374 , _maxStreamRate = Nothing
375375 , _streamLatency = Nothing
376− , _inspectMode = False
376+ , _inspect = False
377377 -- XXX Set it to True when Rate is not set?
378378 , _eagerDispatch = False
379379 , _stopWhen = AllStop
@@ -494,24 +494,24 @@ getStreamLatency = _streamLatency
494494--
495495-- /Pre-release/
496496--
497−inspectMode :: Config -> Config
498−inspectMode st = st { _inspectMode = True }
497+inspect :: Config -> Config
498+inspect st = st { _inspect = True }
499499
500500getInspectMode :: Config -> Bool
501−getInspectMode = _inspectMode
501+getInspectMode = _inspect
502502
503−-- XXX rename to "eager"
504−
505−-- | By default the stream is evaluated on demand, new evaluation may be
506−-- deferred until the consumer consumes the evaluated stream. When 'eagerEval'
507−-- option is on the evaluation is aggressive and does not wait for consumption
508−-- to proceed, the only reason it might block is because of 'maxThreads' or
509−-- 'maxBuffer' limitation.
503+-- | By default, processing of output from the worker threads is given priority
504+-- over dispatching new workers. More workers are dispatched only when there is
505+-- no output to process. With 'eager' on workers are dispatched aggresively as
506+-- long as there is more work to do irrespective of whether there is output
507+-- pending to be processed. However, dispatching may stop if 'maxThreads' or
508+-- 'maxBuffer' is reached.
509+--
510+-- /Note:/ This option has no effect when rate has been specified.
511+-- /Note:/ Not supported with 'interleaved'.
510512--
511−-- Note that this option does nothing for interleave operations or when rate
512−-- has been specified.
513−eagerEval :: Config -> Config
514−eagerEval st = st { _eagerDispatch = True }
513+eager :: Config -> Config
514+eager st = st { _eagerDispatch = True }
515515
516516getEagerDispatch :: Config -> Bool
517517getEagerDispatch = _eagerDispatch
@@ -783,8 +783,8 @@ stmExcHandler dump label e@BlockedIndefinitelyOnSTM = do
783783-- happen, but it may result in unexpected output when threads are left hanging
784784-- until they are GCed because the consumer went away.
785785withDiagMVar :: Bool -> IO String -> String -> IO () -> IO ()
786−withDiagMVar inspect dump label action =
787− if inspect
786+withDiagMVar inspecting dump label action =
787+ if inspecting
788788 then
789789 action `catches` [ Handler (mvarExcHandler dump label)
790790 , Handler (stmExcHandler dump label)