LocationSimulator.Worker (LocationSimulator v1.0.0)

Copy Markdown View Source

Runs a GPS simulation loop using a plug pipeline.

The worker resolves the pipeline module, builds the per-event plug chain, fires lifecycle callbacks, and loops until the event counter is exhausted or a stop signal arrives.

Summary

Functions

start_link(arg)

@spec start_link(map()) :: {:ok, pid()}

start_link(module, arg)

@spec start_link(module(), map()) :: {:ok, pid()}