@@ -693,8 +693,8 @@ main = hspec
693693 let makeOps t =
694694 [ ("default", t)
695695#ifndef COVERAGE_BUILD
696− , ("maxRate 10000", t . maxRate 10000)
697− , ("maxRate -1", t . maxRate (-1))
696+ , ("yieldRate 10000", t . yieldRate 10000)
697+ , ("yieldRate -1", t . yieldRate (-1))
698698 , ("maxBuffer 0", t . maxBuffer 0)
699699 , ("maxBuffer 1", t . maxBuffer 1)
700700 , ("maxThreads 0", t . maxThreads 0)
@@ -707,43 +707,43 @@ main = hspec
707707 let serialOps :: IsStream t => ((SerialT IO a -> t IO a) -> Spec) -> Spec
708708 serialOps spec = mapOps spec $ (makeOps serially)
709709#ifndef COVERAGE_BUILD
710− ++ [("maxRate 0.00000001", serially . maxRate 0.00000001)]
710+ ++ [("yieldRate 0.00000001", serially . yieldRate 0.00000001)]
711711 ++ [("maxBuffer -1", serially . maxBuffer (-1))]
712712#endif
713713 let wSerialOps :: IsStream t => ((WSerialT IO a -> t IO a) -> Spec) -> Spec
714714 wSerialOps spec = mapOps spec $ makeOps wSerially
715715#ifndef COVERAGE_BUILD
716− ++ [("maxRate 0.00000001", wSerially . maxRate 0.00000001)]
716+ ++ [("yieldRate 0.00000001", wSerially . yieldRate 0.00000001)]
717717 ++ [("maxBuffer (-1)", wSerially . maxBuffer (-1))]
718718#endif
719719 let asyncOps :: IsStream t => ((AsyncT IO a -> t IO a) -> Spec) -> Spec
720720 asyncOps spec = mapOps spec $ makeOps asyncly
721721#ifndef COVERAGE_BUILD
722− ++ [("maxRate 10000", asyncly . maxRate 10000)]
722+ ++ [("yieldRate 10000", asyncly . yieldRate 10000)]
723723 ++ [("maxBuffer (-1)", asyncly . maxBuffer (-1))]
724724#endif
725725 let wAsyncOps :: IsStream t => ((WAsyncT IO a -> t IO a) -> Spec) -> Spec
726726 wAsyncOps spec = mapOps spec $ makeOps wAsyncly
727727#ifndef COVERAGE_BUILD
728− ++ [("maxRate 10000", wAsyncly . maxRate 10000)]
728+ ++ [("yieldRate 10000", wAsyncly . yieldRate 10000)]
729729 ++ [("maxBuffer (-1)", wAsyncly . maxBuffer (-1))]
730730#endif
731731 let aheadOps :: IsStream t => ((AheadT IO a -> t IO a) -> Spec) -> Spec
732732 aheadOps spec = mapOps spec $ makeOps aheadly
733733#ifndef COVERAGE_BUILD
734− -- ++ [("maxRate 10000", aheadly . maxRate 10000)]
734+ -- ++ [("yieldRate 10000", aheadly . yieldRate 10000)]
735735 -- ++ [("maxBuffer (-1)", aheadly . maxBuffer (-1))]
736736#endif
737737 let parallelOps :: IsStream t => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
738738 parallelOps spec = mapOps spec $ makeOps parallely
739739#ifndef COVERAGE_BUILD
740− ++ [("maxRate 0.00000001", parallely . maxRate 0.00000001)]
740+ ++ [("yieldRate 0.00000001", parallely . yieldRate 0.00000001)]
741741 ++ [("maxBuffer (-1)", parallely . maxBuffer (-1))]
742742#endif
743743 let zipSerialOps :: IsStream t => ((ZipSerialM IO a -> t IO a) -> Spec) -> Spec
744744 zipSerialOps spec = mapOps spec $ makeOps zipSerially
745745#ifndef COVERAGE_BUILD
746− ++ [("maxRate 0.00000001", zipSerially . maxRate 0.00000001)]
746+ ++ [("yieldRate 0.00000001", zipSerially . yieldRate 0.00000001)]
747747 ++ [("maxBuffer (-1)", zipSerially . maxBuffer (-1))]
748748#endif
749749 -- Note, the "pure" of applicative Zip streams generates and infinite
@@ -751,7 +751,7 @@ main = hspec
751751 let zipAsyncOps :: IsStream t => ((ZipAsyncM IO a -> t IO a) -> Spec) -> Spec
752752 zipAsyncOps spec = mapOps spec $ makeOps zipAsyncly
753753#ifndef COVERAGE_BUILD
754− ++ [("maxRate 10000", zipAsyncly . maxRate 10000)]
754+ ++ [("yieldRate 10000", zipAsyncly . yieldRate 10000)]
755755#endif
756756
757757 describe "Construction" $ do
@@ -815,7 +815,7 @@ main = hspec
815815 zipAsyncOps $ prop "zipAsyncly applicative folded" . zipApplicative folded (==)
816816
817817 -- 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
819819 -- zipAsync.
820820 serialOps $ prop "zip monadic serially" . zipMonadic S.fromFoldable (==)
821821 serialOps $ prop "zip monadic serially folded" . zipMonadic folded (==)
@@ -901,8 +901,8 @@ main = hspec
901901 let mkOps t =
902902 [ ("default", t)
903903#ifndef COVERAGE_BUILD
904− , ("maxRate 0", t . maxRate 0)
905− , ("maxRate -1", t . maxRate (-1))
904+ , ("yieldRate 0", t . yieldRate 0)
905+ , ("yieldRate -1", t . yieldRate (-1))
906906 , ("maxBuffer 0", t . maxBuffer 0)
907907 , ("maxThreads 0", t . maxThreads 0)
908908 , ("maxThreads 0", t . maxThreads (-1))