Skip to content
Basic app demonstrating processes in Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


git clone
cd math_racer
iex -S mix

This is a simple application that demonstrates some of the basics of interacting with processes in Elixir. It has one top level function: MathRacer.race/1 that takes a number. It then spawns that number of MathRacer.Adders, which perform a complicated mathematical operation (1 + 2), and respond to the MathRacer.Coordinator module with the result and how long it to perform. The Coordinator waits for all the results to come in and then calculates the average time it took each process to perform its operation.


If available in Hex, the package can be installed by adding math_racer to your list of dependencies in mix.exs:

def deps do
    {:math_racer, "~> 0.1.0"}

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at

You can’t perform that action at this time.