SuperWorker.Supervisor.Worker (SuperWorker v0.3.6)

View Source

Documentation for SuperWorker.Supervisor.Worker.

Summary

Types

t()

@type t() :: %SuperWorker.Supervisor.Worker{
  fun:
    nil
    | {:fun, fun()}
    | {module(), atom(), [any()]}
    | {:gen_server, {module(), atom(), [any()]}},
  id: any(),
  name: atom(),
  num_workers: non_neg_integer(),
  order: non_neg_integer() | nil,
  parent: :standalone | {atom(), any()},
  restart_strategy: atom(),
  type: :standalone | :group | :chain
}

Functions

default_restart_strategy()

from_config(options)