Skip to content

Commit

Permalink
scalafmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kloch authored and Kamil Kloch committed Aug 7, 2023
1 parent ae076df commit 54c50ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/jvm/src/main/scala/cats/effect/IOApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ trait IOApp {
)

/**
* Configures the action to perform when unhandled errors are caught by the runtime.
* An unhandled error is an error that is raised (and not handled) on a Fiber that nobody is joining.
* Configures the action to perform when unhandled errors are caught by the runtime. An
* unhandled error is an error that is raised (and not handled) on a Fiber that nobody is
* joining.
*
* For example:
*
Expand All @@ -243,8 +244,9 @@ trait IOApp {
* override def run: IO[Unit] = IO(throw new Exception("")).start *> IO.sleep(1.second)
* }}}
*
* In this case, the exception is raised on a Fiber with no listeners. Nobody would be notified
* about that error. Therefore it is unhandled, and it goes through the reportFailure mechanism.
* In this case, the exception is raised on a Fiber with no listeners. Nobody would be
* notified about that error. Therefore it is unhandled, and it goes through the reportFailure
* mechanism.
*
* By default, `reportFailure` simply delegates to
* [[cats.effect.std.Console!.printStackTrace]]. It is safe to perform any `IO` action within
Expand Down

0 comments on commit 54c50ff

Please sign in to comment.