View Source SuperWorker.Supervisor.Worker (SuperWorker v0.0.7)

Documentation for SuperWorker.Supervisor.Worker.

Summary

Types

t()

@type t() :: %SuperWorker.Supervisor.Worker{
  first_worker_id: term(),
  fun: nil | {:fun, fun()} | {module(), atom(), [any()]},
  id: any(),
  name: term(),
  num_workers: non_neg_integer(),
  order: non_neg_integer() | nil,
  parent: any(),
  partition: atom(),
  pid: pid(),
  ref: reference(),
  restart_count: non_neg_integer(),
  restart_strategy: atom(),
  start_time: DateTime.t(),
  supervisor: atom(),
  type: atom()
}

Functions

check_chain_options(opts)

check_group_options(opts)

check_standalone_options(opts)

get(supervisor, worker_id)

remove(supervisor, worker_id)

save(worker)

update_process(supervisor, worker, pid, ref)

update_process(supervisor, arg, worker, pid, ref)