View Source IO.ANSI.Table.SpecServer (IO ANSI Table v1.0.34)

A server process that holds a table spec struct as its state.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Spawns a table spec server process to be registered via a spec name.

Allows to register or look up a table spec server process via a spec name.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec init(IO.ANSI.Table.Spec.t()) :: {:ok, IO.ANSI.Table.Spec.t()}

Callback implementation for GenServer.init/1.

@spec start_link(IO.ANSI.Table.Spec.t()) :: GenServer.on_start()

Spawns a table spec server process to be registered via a spec name.

@spec via(String.t()) :: {:via, Registry, tuple()}

Allows to register or look up a table spec server process via a spec name.