Skip to content

sile/ppg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.