Provides the cats.effect.ConcurrentEffect instance of this runtime environment.
Provides the cats.effect.ConcurrentEffect instance of this runtime environment.
Options for executing the Task action.
Options for executing the Task action. The default value is defined in defaultOptions, but can be overridden.
Scheduler for executing the Task action.
Scheduler for executing the Task action.
Defaults to global
, but can be overridden.
Safe
App
type that executes a Task. Shutdown occurs after theTask
completes, as follows:- If completed with
ExitCode.Success
, the main method exits and shutdown is handled by the platform.- If completed with any other
ExitCode
,sys.exit
is called with the specified code.- If the
Task
raises an error, the stack trace is printed to standard error andsys.exit(1)
is called.When a shutdown is requested via a signal, the
Task
is canceled and we wait for theIO
to release any resources. The process exits with the numeric value of the signal plus 128.N.B. this is homologous with cats.effect.IOApp, but meant for usage with Task.
Works on top of JavaScript as well ;-)