@@ -693,8 +693,8 @@ main = hspec
693 let makeOps t =
693 let makeOps t =
694 [ ("default", t)
694 [ ("default", t)
695#ifndef COVERAGE_BUILD
695#ifndef COVERAGE_BUILD
696− , ("maxRate 10000", t . maxRate 10000)
696+ , ("yieldRate 10000", t . yieldRate 10000)
697− , ("maxRate -1", t . maxRate (-1))
697+ , ("yieldRate -1", t . yieldRate (-1))
698 , ("maxBuffer 0", t . maxBuffer 0)
698 , ("maxBuffer 0", t . maxBuffer 0)
699 , ("maxBuffer 1", t . maxBuffer 1)
699 , ("maxBuffer 1", t . maxBuffer 1)
700 , ("maxThreads 0", t . maxThreads 0)
700 , ("maxThreads 0", t . maxThreads 0)
@@ -707,43 +707,43 @@ main = hspec
707 let serialOps :: IsStream t => ((SerialT IO a -> t IO a) -> Spec) -> Spec
707 let serialOps :: IsStream t => ((SerialT IO a -> t IO a) -> Spec) -> Spec
708 serialOps spec = mapOps spec $ (makeOps serially)
708 serialOps spec = mapOps spec $ (makeOps serially)
709#ifndef COVERAGE_BUILD
709#ifndef COVERAGE_BUILD
710− ++ [("maxRate 0.00000001", serially . maxRate 0.00000001)]
710+ ++ [("yieldRate 0.00000001", serially . yieldRate 0.00000001)]
711 ++ [("maxBuffer -1", serially . maxBuffer (-1))]
711 ++ [("maxBuffer -1", serially . maxBuffer (-1))]
713 let wSerialOps :: IsStream t => ((WSerialT IO a -> t IO a) -> Spec) -> Spec
713 let wSerialOps :: IsStream t => ((WSerialT IO a -> t IO a) -> Spec) -> Spec
714 wSerialOps spec = mapOps spec $ makeOps wSerially
714 wSerialOps spec = mapOps spec $ makeOps wSerially
715#ifndef COVERAGE_BUILD
715#ifndef COVERAGE_BUILD
716− ++ [("maxRate 0.00000001", wSerially . maxRate 0.00000001)]
716+ ++ [("yieldRate 0.00000001", wSerially . yieldRate 0.00000001)]
717 ++ [("maxBuffer (-1)", wSerially . maxBuffer (-1))]
717 ++ [("maxBuffer (-1)", wSerially . maxBuffer (-1))]
719 let asyncOps :: IsStream t => ((AsyncT IO a -> t IO a) -> Spec) -> Spec
719 let asyncOps :: IsStream t => ((AsyncT IO a -> t IO a) -> Spec) -> Spec
720 asyncOps spec = mapOps spec $ makeOps asyncly
720 asyncOps spec = mapOps spec $ makeOps asyncly
721#ifndef COVERAGE_BUILD
721#ifndef COVERAGE_BUILD
722− ++ [("maxRate 10000", asyncly . maxRate 10000)]
722+ ++ [("yieldRate 10000", asyncly . yieldRate 10000)]
723 ++ [("maxBuffer (-1)", asyncly . maxBuffer (-1))]
723 ++ [("maxBuffer (-1)", asyncly . maxBuffer (-1))]
725 let wAsyncOps :: IsStream t => ((WAsyncT IO a -> t IO a) -> Spec) -> Spec
725 let wAsyncOps :: IsStream t => ((WAsyncT IO a -> t IO a) -> Spec) -> Spec
726 wAsyncOps spec = mapOps spec $ makeOps wAsyncly
726 wAsyncOps spec = mapOps spec $ makeOps wAsyncly
727#ifndef COVERAGE_BUILD
727#ifndef COVERAGE_BUILD
728− ++ [("maxRate 10000", wAsyncly . maxRate 10000)]
728+ ++ [("yieldRate 10000", wAsyncly . yieldRate 10000)]
729 ++ [("maxBuffer (-1)", wAsyncly . maxBuffer (-1))]
729 ++ [("maxBuffer (-1)", wAsyncly . maxBuffer (-1))]
731 let aheadOps :: IsStream t => ((AheadT IO a -> t IO a) -> Spec) -> Spec
731 let aheadOps :: IsStream t => ((AheadT IO a -> t IO a) -> Spec) -> Spec
732 aheadOps spec = mapOps spec $ makeOps aheadly
732 aheadOps spec = mapOps spec $ makeOps aheadly
733#ifndef COVERAGE_BUILD
733#ifndef COVERAGE_BUILD
734− -- ++ [("maxRate 10000", aheadly . maxRate 10000)]
734+ -- ++ [("yieldRate 10000", aheadly . yieldRate 10000)]
735 -- ++ [("maxBuffer (-1)", aheadly . maxBuffer (-1))]
735 -- ++ [("maxBuffer (-1)", aheadly . maxBuffer (-1))]
737 let parallelOps :: IsStream t => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
737 let parallelOps :: IsStream t => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
738 parallelOps spec = mapOps spec $ makeOps parallely
738 parallelOps spec = mapOps spec $ makeOps parallely
739#ifndef COVERAGE_BUILD
739#ifndef COVERAGE_BUILD
740− ++ [("maxRate 0.00000001", parallely . maxRate 0.00000001)]
740+ ++ [("yieldRate 0.00000001", parallely . yieldRate 0.00000001)]
741 ++ [("maxBuffer (-1)", parallely . maxBuffer (-1))]
741 ++ [("maxBuffer (-1)", parallely . maxBuffer (-1))]
743 let zipSerialOps :: IsStream t => ((ZipSerialM IO a -> t IO a) -> Spec) -> Spec
743 let zipSerialOps :: IsStream t => ((ZipSerialM IO a -> t IO a) -> Spec) -> Spec
744 zipSerialOps spec = mapOps spec $ makeOps zipSerially
744 zipSerialOps spec = mapOps spec $ makeOps zipSerially
745#ifndef COVERAGE_BUILD
745#ifndef COVERAGE_BUILD
746− ++ [("maxRate 0.00000001", zipSerially . maxRate 0.00000001)]
746+ ++ [("yieldRate 0.00000001", zipSerially . yieldRate 0.00000001)]
747 ++ [("maxBuffer (-1)", zipSerially . maxBuffer (-1))]
747 ++ [("maxBuffer (-1)", zipSerially . maxBuffer (-1))]
749 -- Note, the "pure" of applicative Zip streams generates and infinite
749 -- Note, the "pure" of applicative Zip streams generates and infinite
@@ -751,7 +751,7 @@ main = hspec
751 let zipAsyncOps :: IsStream t => ((ZipAsyncM IO a -> t IO a) -> Spec) -> Spec
751 let zipAsyncOps :: IsStream t => ((ZipAsyncM IO a -> t IO a) -> Spec) -> Spec
752 zipAsyncOps spec = mapOps spec $ makeOps zipAsyncly
752 zipAsyncOps spec = mapOps spec $ makeOps zipAsyncly
753#ifndef COVERAGE_BUILD
753#ifndef COVERAGE_BUILD
754− ++ [("maxRate 10000", zipAsyncly . maxRate 10000)]
754+ ++ [("yieldRate 10000", zipAsyncly . yieldRate 10000)]
757 describe "Construction" $ do
757 describe "Construction" $ do
@@ -815,7 +815,7 @@ main = hspec
815 zipAsyncOps $ prop "zipAsyncly applicative folded" . zipApplicative folded (==)
815 zipAsyncOps $ prop "zipAsyncly applicative folded" . zipApplicative folded (==)
817 -- We test only the serial zip with serial streams and the parallel
817 -- We test only the serial zip with serial streams and the parallel
818− -- stream, because the maxRate setting in these streams can slow down
818+ -- stream, because the yieldRate setting in these streams can slow down
819 -- zipAsync.
819 -- zipAsync.
820 serialOps $ prop "zip monadic serially" . zipMonadic S.fromFoldable (==)
820 serialOps $ prop "zip monadic serially" . zipMonadic S.fromFoldable (==)
821 serialOps $ prop "zip monadic serially folded" . zipMonadic folded (==)
821 serialOps $ prop "zip monadic serially folded" . zipMonadic folded (==)
@@ -901,8 +901,8 @@ main = hspec
901 let mkOps t =
901 let mkOps t =
902 [ ("default", t)
902 [ ("default", t)
903#ifndef COVERAGE_BUILD
903#ifndef COVERAGE_BUILD
904− , ("maxRate 0", t . maxRate 0)
904+ , ("yieldRate 0", t . yieldRate 0)
905− , ("maxRate -1", t . maxRate (-1))
905+ , ("yieldRate -1", t . yieldRate (-1))
906 , ("maxBuffer 0", t . maxBuffer 0)
906 , ("maxBuffer 0", t . maxBuffer 0)
907 , ("maxThreads 0", t . maxThreads 0)
907 , ("maxThreads 0", t . maxThreads 0)
908 , ("maxThreads 0", t . maxThreads (-1))
908 , ("maxThreads 0", t . maxThreads (-1))