on master help sign in
Fix documentation typos, add minor clarification
commitc7b2e4f81773f5aae13314b312851c17f1645838 authorShlok Datye <shlok@users.noreply.github.com> dateMon 17 Apr 2023, 07:55 (4 years ago) parent8519dd2
1 file changed+3−3
src/Streamly/Internal/Data/Stream/Concurrent.hs+3−3
src/Streamly/Internal/Data/Stream/Concurrent.hs+3−3
@@ -528,9 +528,9 @@ parApply modifier stream1 stream2 =
528528--
529529-- >>> parMapM modifier f = Stream.parConcatMap modifier (Stream.fromEffect . f)
530530--
531−-- Example, the following example finishes in 1 second as all actions run in
532−-- parallel. Even though results are available out of order they are ordered
533−-- due to the config option::
531+-- For example, the following finishes in 3 seconds (as opposed to 6 seconds)
532+-- because all actions run in parallel. Even though results are available out
533+-- of order they are ordered due to the config option:
534534--
535535-- >>> f x = delay x >> return x
536536-- >>> Stream.fold Fold.toList $ Stream.parMapM (Stream.ordered True) f $ Stream.fromList [3,2,1]