Produces the IO
to be run as an app.
Produces the IO
to be run as an app.
the cats.effect.ExitCode the JVM exits with
The main method that runs the IO
returned by run and exits
the JVM with the resulting code on completion.
Provides an implicit timer instance for the app.
Provides an implicit timer instance for the app.
On the JVM, the default lazily constructed from the global execution context. Override to avoid instantiating this execution context.
On scala.js, the default is Timer.global
.
App
type that runs a cats.effect.IO and exits with the returned code. If theIO
raises an error, then the stack trace is printed to standard error and the JVM exits with code 1.When a shutdown is requested via a signal, the
IO
is canceled and we wait for theIO
to release any resources. The JVM exits with the numeric value of the signal plus 128.