y_process v0.1.4 YProcess.Backend.PG2

Simple implementation of channels using PG2’s process groups.

Summary

Functions

Creates a channel in :pg2

Deletes a channel in :pg2

Emits a message in a channel

The process with the pid joins a channel in :pg2

The process with the pid leaves a channel in :pg2

Functions

create(channel)

Creates a channel in :pg2.

delete(channel)

Deletes a channel in :pg2

emit(channel, message)

Emits a message in a channel.

join(channel, pid)

The process with the pid joins a channel in :pg2.

leave(channel, pid)

The process with the pid leaves a channel in :pg2.