Start, manage and run a collection of identical Elixir processes with ease.
Add zwarm
to your list of dependencies in mix.exs
:
def deps do
[{:zwarm, "~> 0.1.0"}]
end
# Start 10_000 processes
ref = Zwarm.create!(10_000, fn -> IO.puts "I am process: #{inspect self()}" end)
# Run function on all processes
Zwarm.run(ref)
# Destroy
Zwarm.destroy(ref)
MIT LIcense