View Source ExPomodoro.PomodoroSupervisor (ExPomodoro v1.0.1)

Specific implementation for the Pomodoro Supervisor

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Given a cart id, returns nil or a tuple where the first component is a Elixir.ExPomodoro.PomodoroServer pid and the second component the cart server state.

Given a reference and some arguments starts a Elixir.ExPomodoro.PomodoroServer child and returns it's pid.

Given a keyword of args, initialises the dynamic Pomodoro Supervisor.

Given a reference and a child pid, terminates a Elixir.ExPomodoro.PomodoroServer process.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec get_child(String.t()) :: {pid(), ExPomodoro.Pomodoro.t()} | nil

Given a cart id, returns nil or a tuple where the first component is a Elixir.ExPomodoro.PomodoroServer pid and the second component the cart server state.

Link to this function

start_child(supervisor, args)

View Source
@spec start_child(
  module(),
  keyword()
) :: {:ok, pid()}

Given a reference and some arguments starts a Elixir.ExPomodoro.PomodoroServer child and returns it's pid.

@spec start_link(keyword()) :: {:ok, pid()}

Given a keyword of args, initialises the dynamic Pomodoro Supervisor.

Link to this function

terminate_child(supervisor, pid)

View Source
@spec terminate_child(module(), pid()) :: :ok | {:error, :not_found}

Given a reference and a child pid, terminates a Elixir.ExPomodoro.PomodoroServer process.