SmolBox.Runtime (SmolBox v0.1.0)

Copy Markdown View Source

Explicitly started supervisor for bounded managed execution.

Starting the library application alone opens no worker connections and starts no scheduler or database. A named runtime checks its host store semantics, then starts a bounded work subtree and an independent notification dispatcher. The work subtree couples its task supervisor and coordinator for recovery; a dispatcher restart alone does not interrupt those execution processes. Shutdown terminates observers; this is not proof of guest cancellation. Persisted due work is the restart authority. Durable mode never falls back to memory.

Summary

Functions

Returns a specification to start this module under a supervisor.

Start a linked runtime using the options documented in SmolBox.child_spec/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(options)

@spec start_link(keyword()) :: Supervisor.on_start()

Start a linked runtime using the options documented in SmolBox.child_spec/1.

Normal applications add {SmolBox, options} to their supervision tree. Startup validates adapter contracts and store capabilities before starting observers. Returns {:ok, pid} or the underlying validation/supervisor startup error.