Skip to content

Commit

Permalink
fix deadlock that occured, while shutting down Resource[F, JmsConnect…
Browse files Browse the repository at this point in the history
…or[F]] (#383)

* fix deadlock that occured, while shutting down Resource[F, JmsConnector[F]]

* set empty mima
  • Loading branch information
bwiercinski authored Aug 21, 2023
1 parent 7958d30 commit dd9bce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ lazy val commonSettings = Seq(
compilerOptions,
Test / fork := true,
libraryDependencies ++= compilerPlugins,
// mimaPreviousArtifacts := Seq(), // TODO
mimaPreviousArtifacts := Set(), // TODO
libraryDependencies ++= Seq(
"com.disneystreaming" %% "weaver-cats" % Versions.Weaver,
"com.disneystreaming" %% "weaver-framework" % Versions.Weaver,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ private[activemq] object taps {
}

private def subscriberStream[F[_], A](subscriber: SinkQueueWithCancel[A])(implicit F: Async[F]): Stream[F, A] = {
val pull = Async[F].fromFuture(F.delay(subscriber.pull()))
val cancel = F.delay(subscriber.cancel())
val pull = Async[F].fromFutureCancelable(F.delay((subscriber.pull(), cancel)))
Stream.repeatEval(pull).unNoneTerminate.onFinalize(cancel)
}

Expand Down

0 comments on commit dd9bce9

Please sign in to comment.