Drafter.TableOwner (drafter v0.3.2)

Copy Markdown View Source

Owns the framework's shared ETS tables.

The tables listed by owned/0 are created when this process starts and live for the lifetime of the application. A module's own create/0 is a no-op once its table exists, so calling it is safe but unnecessary.

Summary

Functions

Returns a specification to start this module under a supervisor.

The modules whose tables this process owns.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

owned()

@spec owned() :: [module()]

The modules whose tables this process owns.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()