@@ -427,20 +427,20 @@ checkTakeDropTime (mt0, mt1) = do
429#ifdef DEVBUILD
429#ifdef DEVBUILD
430−testTakeByTime :: IO Bool
430+testTakeInterval :: IO Bool
431−testTakeByTime = do
431+testTakeInterval = do
433− S.fold ((,) <$> FL.head <*> FL.last)
433+ S.fold (FL.tee FL.head FL.last)
434− $ IS.takeByTime takeDropTime
434+ $ IS.takeInterval takeDropTime
435 $ S.repeatM (threadDelay 1000 >> getTime Monotonic)
435 $ S.repeatM (threadDelay 1000 >> getTime Monotonic)
436 checkTakeDropTime r
436 checkTakeDropTime r
438−testDropByTime :: IO Bool
438+testDropInterval :: IO Bool
439−testDropByTime = do
439+testDropInterval = do
440 t0 <- getTime Monotonic
440 t0 <- getTime Monotonic
443− $ IS.dropByTime takeDropTime
443+ $ IS.dropInterval takeDropTime
444 $ S.repeatM (threadDelay 1000 >> getTime Monotonic)
444 $ S.repeatM (threadDelay 1000 >> getTime Monotonic)
445 checkTakeDropTime (Just t0, mt1)
445 checkTakeDropTime (Just t0, mt1)
@@ -633,8 +633,8 @@ main = hspec
634#ifdef DEVBUILD
634#ifdef DEVBUILD
635 describe "Filtering" $ do
635 describe "Filtering" $ do
636− it "takeByTime" (testTakeByTime `shouldReturn` True)
636+ it "takeInterval" (testTakeInterval `shouldReturn` True)
637− it "dropByTime" (testDropByTime `shouldReturn` True)
637+ it "dropInterval" (testDropInterval `shouldReturn` True)
640 describe "Stream group and split operations" $ do
640 describe "Stream group and split operations" $ do