Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
boundThreads :: Bool -> Config -> Configstreamly Streamly.Internal.Data.Fold.Prelude Spawn bound threads (i.e., spawn threads using forkOS instead of forkIO). The default value is False. Currently, this only takes effect only for concurrent folds.
-
streamly Streamly.Internal.Data.SVar This is safe even if we are adding more threads concurrently because if a child thread is adding another thread then anyway workerThreads will not be empty.
-
streamly Streamly.Internal.Data.SVar No documentation available.
minThreadDelay :: NanoSecond64streamly Streamly.Internal.Data.SVar This is a magic number and it is overloaded, and used at several places to achieve batching:
- If we have to sleep to slowdown this is the minimum period that we accumulate before we sleep. Also, workers do not stop until this much sleep time is accumulated.
- Collected latencies are computed and transferred to measured latency after a minimum of this period.
-
streamly Streamly.Internal.Data.SVar No documentation available.
maxThreads :: forall t (m :: Type -> Type) a . IsStream t => Int -> t m a -> t m astreamly Streamly.Internal.Data.Stream.IsStream Specify the maximum number of threads that can be spawned concurrently for any concurrent combinator in a stream. A value of 0 resets the thread limit to default, a negative value means there is no limit. The default value is 1500. maxThreads does not affect ParallelT streams as they can use unbounded number of threads. When the actions in a stream are IO bound, having blocking IO calls, this option can be used to control the maximum number of in-flight IO requests. When the actions are CPU bound this option can be used to control the amount of CPU used by the stream. Since: 0.4.0 (Streamly)
maxThreads :: forall t (m :: Type -> Type) a . IsStream t => Int -> t m a -> t m astreamly Streamly.Internal.Data.Stream.IsStream Specify the maximum number of threads that can be spawned concurrently for any concurrent combinator in a stream. A value of 0 resets the thread limit to default, a negative value means there is no limit. The default value is 1500. maxThreads does not affect ParallelT streams as they can use unbounded number of threads. When the actions in a stream are IO bound, having blocking IO calls, this option can be used to control the maximum number of in-flight IO requests. When the actions are CPU bound this option can be used to control the amount of CPU used by the stream. Since: 0.4.0 (Streamly)
runReaderT :: (IsStream t, Monad m) => m s -> t (ReaderT s m) a -> t m astreamly Streamly.Internal.Data.Stream.IsStream Evaluate the inner monad of a stream as ReaderT.
-
streamly Streamly.Internal.Data.Stream.IsStream Run a stream transformation using a given environment. See also: map Internal
class Monad m =>
MonadReader r (m :: Type -> Type) | m -> rstreamly Streamly.Internal.Data.Stream.MkType See examples in Control.Monad.Reader. Note, the partially applied function type (->) r is a simple reader monad. See the instance declaration below.