Cauldron2D.Atlas.Tables (Cauldron2D v0.1.3)

Copy Markdown View Source

Owns every atlas's composited-tile cache table, so a table outlives whichever process installed the atlas.

Cauldron2D.Atlas.Tables.ensure(Cauldron2D.Atlas.cache(:my_game))

Started by the :cauldron_2d application. ensure/1 makes the named table, public and read-concurrent, if it does not exist, and returns its name either way.

Summary

Functions

Returns a specification to start this module under a supervisor.

The table named name, made by this process if it is not there.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

ensure(name)

@spec ensure(atom()) :: atom()

The table named name, made by this process if it is not there.