Skip to content

Commit

Permalink
Add IORuntime#liveFiberSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jun 18, 2022
1 parent 3b4920d commit 5e17ca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/shared/src/main/scala/cats/effect/unsafe/IORuntime.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ final class IORuntime private[unsafe] (
val config: IORuntimeConfig
) {

def liveFiberSnapshot(): Unit = liveFiberSnapshot(System.err.println(_))
def liveFiberSnapshot(print: String => Unit): Unit =
fiberMonitor.liveFiberSnapshot(print)

private[effect] val fiberErrorCbs: StripedHashtable = new StripedHashtable()

/*
Expand Down

0 comments on commit 5e17ca8

Please sign in to comment.