Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Change the ZMXSupervisor's value creation from eager to lazy (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczuchnowski authored Oct 14, 2021
1 parent 5cceee4 commit f596b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/zio/zmx/diagnostics/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package object diagnostics {
Platform.newConcurrentSet[Fiber.Runtime[Any, Any]]()

val value: UIO[Set[Fiber.Runtime[Any, Any]]] =
UIO.succeedNow(fibers.asScala.toSet)
UIO.succeed(fibers.asScala.toSet)

def unsafeOnStart[R, E, A](
environment: R,
Expand Down

0 comments on commit f596b9c

Please sign in to comment.