Hourglass.Runtime (hourglass v0.1.0)

Copy Markdown View Source

One-per-application GenServer holding the CoreRuntime resource. Workers share the resource via handle/0. Constructing more than one CoreRuntime is wasteful (each spins up its own Tokio runtime).

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle()

@spec handle() :: term()

start_link(opts \\ [])

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