Main

marola.Main
object Main extends KyoApp

POC entry point for marola, the ocean intelligence layer — its first case, "what's the best hour tomorrow to swim nearby?".

Attributes

Graph
Supertypes
class KyoApp
class KyoAppPlatformSpecific
trait KyoAppRunnerPlatform
trait KyoAppRunnerWithInterrupts
trait KyoAppRunner
class Base[Async & Scope & Abort[Any]]
class Object
trait Matchable
class Any
Show all
Self type
Main.type

Members list

Value members

Inherited methods

final protected def args: Chunk[String]

The argument(s) this application was started with.

The argument(s) this application was started with.

Attributes

Inherited from:
Base
protected def exit(code: Int)(using AllowUnsafe): Unit

Unsafely exits the application.

Unsafely exits the application.

Attributes

Inherited from:
Base
final override protected def exitHook(code: Int)(using AllowUnsafe): Unit

Unsafely exits the process on non-throwable failures (onResult).

Unsafely exits the process on non-throwable failures (onResult).

Attributes

Definition Classes
KyoAppPlatformSpecific -> KyoAppRunner
Inherited from:
KyoAppPlatformSpecific
final override protected def handle[A](v: A < (Async & Scope & Abort[Any]))(using Frame): A < (Async & Abort[Throwable])

Wraps an effect for execution (interrupts, scope, etc.).

Wraps an effect for execution (interrupts, scope, etc.).

Attributes

Definition Classes
KyoAppRunnerWithInterrupts -> KyoAppRunner
Inherited from:
KyoAppRunnerWithInterrupts
protected def handleWithInterrupts[A](v: A < (Async & Abort[Throwable]))(using Frame): A < (Async & Abort[Throwable])

Attributes

Inherited from:
KyoAppInterrupts (hidden)
final def main(args: Array[String]): Unit

Attributes

Inherited from:
Base
final protected def onResult[E, A](result: Result[E, A])(using Render[Result[E, A]], AllowUnsafe): Unit

Handles the result of a registered effect block.

Handles the result of a registered effect block.

Attributes

Inherited from:
KyoAppRunner
final protected def registerEffect[A](effect: => A < (Async & Scope & Abort[Any]))(using Frame, Render[A]): Unit

Registers an effect to run when KyoAppRunner.runInitCode executes.

Registers an effect to run when KyoAppRunner.runInitCode executes.

Attributes

Inherited from:
KyoAppRunnerPlatform
final override protected def run[A](v: => A < (Async & Scope & Abort[Any]))(using Frame, Render[A]): Unit

The main entrypoint to this application.

The main entrypoint to this application.

Attributes

Definition Classes
KyoAppPlatformSpecific -> Base
Inherited from:
KyoAppPlatformSpecific
final protected def runInitCode(): Unit

Runs all registered thunks in order.

Runs all registered thunks in order.

Attributes

Inherited from:
KyoAppRunner
protected def runTimeout: Duration

The timeout for each registered effect block.

The timeout for each registered effect block.

Attributes

Inherited from:
KyoAppRunner

Inherited fields

protected var initCode: Chunk[() => Unit]

Thunks executed in registration order when the entrypoint runs.

Thunks executed in registration order when the entrypoint runs.

Attributes

Inherited from:
KyoAppRunner