View Source SpawnSdk.System.Supervisor (spawn_sdk v1.3.1)

Documentation for System.Supervisor.

Start Supervisor tree like this:

defmodule MyApp.Application do

use Application

@impl true
def start(_type, _args) do
  children = [
    {
      SpawnSdk.System.Supervisor,
      system: "my-system", actors: [MyActor]
    }
  ]

  opts = [strategy: :one_for_one, name: MyApp.Supervisor]
  Supervisor.start_link(children, opts)

end

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.