From a5553b819c31eca40986aa1f961ed39314d4a632 Mon Sep 17 00:00:00 2001 From: Harendra Kumar Date: Mon, 2 Jul 2018 00:27:34 +0530 Subject: [PATCH] Add default limits for maxThreads/Buffer in docs --- src/Streamly/Streams/SVar.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Streamly/Streams/SVar.hs b/src/Streamly/Streams/SVar.hs index 1881c3842..9a5f17f19 100644 --- a/src/Streamly/Streams/SVar.hs +++ b/src/Streamly/Streams/SVar.hs @@ -89,7 +89,7 @@ toSVar sv m = toStreamVar sv (toStream m) -- when using concurrent streams. This is not the grand total number of threads -- but maximum threads at each point of concurrency. -- A value of 0 resets the thread limit to default, a negative value means --- there is no limit. +-- there is no limit. The default value is 1500. -- -- @since 0.4.0 maxThreads :: IsStream t => Int -> t m a -> t m a @@ -101,7 +101,7 @@ maxThreads n m = fromStream $ Stream $ \st stp sng yld -> do -- concurrent computations. If the buffer becomes full we stop spawning more -- concurrent tasks until there is space in the buffer. -- A value of 0 resets the buffer size to default, a negative value means --- there is no limit. +-- there is no limit. The default value is 1500. -- -- @since 0.4.0 maxBuffer :: IsStream t => Int -> t m a -> t m a