Distributed v0.1.1 Distributed.Replicator.GenServer View Source

The functions in Distributed.Replicator.GenServer module helps to replicate an event by processing it on the all nodes in the network. In Distributed.Replicator.GenServer, functions execute processes in parallel.

Note: Since this module is only a wrapper for GenServer module, there is no need to write a detailed documentation for this module. Please check documentation of the GenServer module; you can basically think that the functions of the module run on every single node without specifying nodes, and you will be replied with a list of results of the processes.

Link to this section Summary

Functions

Makes synchronous calls to the servers on nodes and waits for their replies. See GenServer.call/3

Sends asynchronous requests to the servers on nodes. See GenServer.cast/2

Sends messages to the given dest on nodes and returns the message. See Kernel.send/2

Link to this section Functions

Link to this function call(server, term, opts \\ []) View Source
call(server :: atom, term, opts :: [any]) :: [term]

Makes synchronous calls to the servers on nodes and waits for their replies. See GenServer.call/3

Link to this function cast(server, term, opts \\ []) View Source
cast(server :: atom, term :: term, opts :: [any]) :: [term]

Sends asynchronous requests to the servers on nodes. See GenServer.cast/2

Link to this function info(dest, msg, opts \\ []) View Source
info(dest :: pid | port | atom, msg :: any, opts :: [any]) :: any

Sends messages to the given dest on nodes and returns the message. See Kernel.send/2