Skip to content

Commit

Permalink
Use Sync.blocking for flag evaluations
Browse files Browse the repository at this point in the history
  • Loading branch information
bplommer committed Nov 1, 2022
1 parent c803ca7 commit 703f48d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object LaunchDarklyClient {
new LaunchDarklyClient.Default[F] {

override def unsafeWithJavaClient[A](f: LDClient => A): F[A] =
F.delay(f(ldClient))
F.blocking(f(ldClient))

override def listen(featureKey: String, user: LDUser): Stream[F, FlagValueChangeEvent] =
Stream.eval(F.delay(ldClient.getFlagTracker)).flatMap { tracker =>
Expand Down

0 comments on commit 703f48d

Please sign in to comment.