Simple
Attributes
- Source
- UringApp.scala
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- >[Nothing](keepAlive) val$1$:IO[ExitCode]=Spawn.apply[[A>:Nothing<:Any]=>IO[A]](asyncForIO,dummyImplicit).raceOutcome[ExitCode,Nothing](CpuStarvationCheck.run(IOApp.this.runtimeConfig,NativeCpuStarvationMetrics.apply(),((metrics:CpuStarvationWarningMetrics)=>IOApp.this.onCpuStarvationWarn(metrics))).background.surround[ExitCode](IOApp.this.run(wrapRefArray[String](args).toList))(asyncForIO),keepAlive).flatMap[ExitCode](((x$1:Either[Outcome[[A>:Nothing<:Any]=>IO[A],Throwable,ExitCode],Outcome[[A>:Nothing<:Any]=>IO[A],Throwable,Nothing]])=>x$1match{ caseLeft(Outcome.Canceled())=> IO.raiseError[Nothing](newCancellationException("IOAppmainfiberwascanceled")) caseLeft(Outcome.Errored(t))=> IO.raiseError[Nothing](t) caseLeft(Outcome.Succeeded(code))=> (code:IO[ExitCode]) caseRight(Outcome.Errored(t))=> IO.raiseError[Nothing](`t₂`) caseRight(_)=> sys.error("impossible") })) $1$.unsafeRunFiber(System.exit(0),((`t₃`:Throwable)=>{ `t₃`.printStackTrace() System.exit(1) }),((c:ExitCode)=>System.exit(c.code)),$1$.unsafeRunFiber$default$4)(IOApp.this.runtime) () }">IOApp
- Source
- IOApp.scala
The entry point for your application.
The entry point for your application. Will be called by the runtime when the process is started. If the underlying runtime supports it, any arguments passed to the process will be made available in the args
parameter. The numeric value within the resulting ExitCode will be used as the exit code when the process terminates unless terminated exceptionally or by interrupt.
Value parameters
- args
-
The arguments passed to the process, if supported by the underlying runtime. For example,
java com.company.MyApp --foo --bar baz
ornode com-mycompany-fastopt.js --foo --bar baz
would each result inList("--foo", "--bar", "baz")
.
Attributes
- See also
-
IOApp.Simple!.run:cats\.effect\.IO[Unit]*
- Inherited from:
- Simple
- Source
- IOApp.scala
Attributes
- Inherited from:
- Simple
- Source
- IOApp.scala
Inherited fields
The runtime which will be used by IOApp
to evaluate the IO produced by the run
method.
The runtime which will be used by IOApp
to evaluate the IO produced by the run
method. This may be overridden by IOApp
implementations which have extremely specialized needs, but this is highly unlikely to ever be truly needed. As an example, if an application wishes to make use of an alternative compute thread pool (such as Executors.fixedThreadPool
), it is almost always better to leverage IO.evalOn on the value produced by the run
method, rather than directly overriding runtime
.
In other words, this method is made available to users, but its use is strongly discouraged in favor of other, more precise solutions to specific use-cases.
This value is guaranteed to be equal to unsafe.IORuntime.global.
Attributes
- Inherited from:
- UringApp
- Source
- UringApp.scala