/ppg

Plumtree based Distributed Process Group

Primary LanguageErlangMIT LicenseMIT

ppg

hex.pm version

Plumtree based Process Group

Build

$ git clone git@github.com:sile/ppg.git
$ cd ppg/
$ ./rebar3 compile

Usage Examples

$ make start
> ppg:create(foo).

> ppg:which_groups().
[foo].

> {ok, Channel} = ppg:join(foo, self()).
> lists:foreach(fun (_) -> ppg:join(foo, self()) end, lists:seq(1, 4)).

> ppg:broadcast(Channel, bar).
> flush().
Shell got bar
Shell got bar
Shell got bar
Shell got bar
Shell got bar
ok

API

See EDoc Documents

Reference

License

This library is released under the MIT License.

See the LICENSE file for full license information.