Skip to content

Commit 63232be

Browse files
committed
Upgrade dependencies
- FS2 1.0.0 - cats-effect 1.0.0 - cats-core 1.4.0
1 parent 27a3338 commit 63232be

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def dep(org: String)(version: String)(modules: String*) =
4747

4848
lazy val dependencies =
4949
libraryDependencies ++= Seq(
50-
"co.fs2" %% "fs2-core" % "1.0.0-M4",
51-
"org.typelevel" %% "cats-core" % "1.2.0",
50+
"co.fs2" %% "fs2-core" % "1.0.0",
51+
"org.typelevel" %% "cats-core" % "1.4.0",
5252
"org.typelevel" %% "dogs-core" % "0.6.10",
53-
"org.typelevel" %% "cats-effect" % "1.0.0-RC3"
53+
"org.typelevel" %% "cats-effect" % "1.0.0"
5454
)
5555

5656
lazy val tests = {

src/main/scala/core.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package upperbound
22

33
import cats.Applicative
4-
import fs2.{Pipe, Stream, async}
4+
import fs2.{Pipe, Stream}
5+
import fs2.concurrent.SignallingRef
56
import cats.effect.{Concurrent, Timer}
67
import cats.effect.concurrent.{Deferred, Ref}
78
import cats.syntax.functor._
@@ -167,7 +168,7 @@ object core {
167168
n: Int)(implicit Timer: Timer[F],
168169
Concurrent: Concurrent[F]): F[Limiter[F]] =
169170
Queue.bounded[F, F[BackPressure]](n) flatMap { queue =>
170-
async.signalOf[F, Boolean](false) flatMap { stop =>
171+
SignallingRef[F, Boolean](false) flatMap { stop =>
171172
Ref.of[F, FiniteDuration](period) flatMap { interval =>
172173
// `job` needs to be executed asynchronously so that long
173174
// running jobs don't interfere with the frequency of pulling

0 commit comments

Comments
 (0)