Ergo.ParserRefs (Ergo v0.4.6)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the next parser ref id, a monotonically increasing value starting at 0

Starts the refs agent. There is no need to call this directly as it will be started as part of the calling applications supervision tree via mix.exs

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Returns the next parser ref id, a monotonically increasing value starting at 0

Examples

iex> assert is_integer(Ergo.ParserRefs.next_ref())

Starts the refs agent. There is no need to call this directly as it will be started as part of the calling applications supervision tree via mix.exs