An entry point for a ZIO application that allows sharing layers between applications. For a simpler version that uses the default ZIO environment see ZIOAppDefault.
Attributes
- Companion
- object
- Source
- ZIOApp.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ZIOSpecAbstractclass ZIOSpec[R]class ZIOSpecDefaultclass JUnitRunnableSpecclass Proxytrait ZIOAppDefaultShow all
- Self type
Members list
Type members
Types
Attributes
- Source
- ZIOApp.scala
Value members
Abstract methods
A layer that manages the acquisition and release of services necessary for the application to run.
A layer that manages the acquisition and release of services necessary for the application to run.
Attributes
- Source
- ZIOApp.scala
The main function of the application, which can access the command-line arguments through the args helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero. Otherwise, the exit code of the application will be zero.
The main function of the application, which can access the command-line arguments through the args helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero. Otherwise, the exit code of the application will be zero.
Attributes
- Source
- ZIOApp.scala
Concrete methods
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.
Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.
Attributes
- Source
- ZIOApp.scala
A helper function to exit the application with the specified exit code.
A helper function to exit the application with the specified exit code.
Attributes
- Source
- ZIOApp.scala
A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.
A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.
Attributes
- Source
- ZIOApp.scala
The time that the application will wait for finalizers to run before exiting.
The time that the application will wait for finalizers to run before exiting.
'''NOTE''': This is currently used only for JVM & ScalaNative applications
Attributes
- Source
- ZIOApp.scala
Invokes the main app. Designed primarily for testing.
Attributes
- Source
- ZIOApp.scala
Inherited methods
The Scala main function, intended to be called only by the Scala runtime.
The Scala main function, intended to be called only by the Scala runtime.
Attributes
- Inherited from:
- ZIOAppPlatformSpecific (hidden)
- Source
- ZIOAppPlatformSpecific.scala
Implicits
Implicits
Attributes
- Source
- ZIOApp.scala
Inherited implicits
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.
If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.
Attributes
- Inherited from:
- ZIOAppVersionSpecific (hidden)
- Source
- ZIOAppVersionSpecific.scala