Together

Hex.pmDocumentation

Group actions that can be handled / responded to later together

What for?

Installation

Elixir 1.4 is required

The package can be installed as:

Add together to your list of dependencies in mix.exs:

def deps do
[{:together, "~> 0.5"}]
end

How to use

Start Together.Supervisor to use it

Start with application configs

supervisor(Together.Supervisor, [])

Start with configs passed in

supervisor(Together.Supervisor, [workers: ..., store: ...])

See Together.Supervisor for full configuration information

Make calls to the worker process:

Together.process(binary_name, "something_unique", some_func)
Together.process(pid, "some_unique_name_or_id", a_function)
Together.process(Together.Worker, "id", Module, :func, [arg1, arg2, ...])

More ideas