Mayfly.Supervisor (Mayfly v0.1.0)

View Source

Supervisor for the Mayfly application.

This module defines the supervision tree for the Lambda runtime, managing the lifecycle of the Lambda event loop.

Summary

Functions

Returns a specification to start this module under a supervisor.

Initializes the supervisor with the Lambda event loop as its child.

Starts the supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(atom)

@spec init(:ok) :: {:ok, {Supervisor.sup_flags(), [Supervisor.child_spec()]}}

Initializes the supervisor with the Lambda event loop as its child.

start_link()

@spec start_link() :: {:ok, pid()} | {:error, any()}

Starts the supervisor.