OxApp

ox.OxApp
See theOxApp companion object
trait OxApp

Extend this trait when defining application entry points. Comes in several variants:

The benefit of using OxApp compared to normal @main methods is that application interruptions is handled properly. A fork in a scope is created to run the application's logic. Interrupting the application (e.g. using CTRL+C) will cause the scope to end and all forks to be interrupted, allowing for a clean shutdown.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Simple
trait WithErrorMode[E, F]
class WithEitherErrors[E]

Members list

Value members

Abstract methods

def run(args: Vector[String])(using Ox): ExitCode

Concrete methods

final def main(args: Array[String]): Unit