Ad hoc, informally-specified, bug-ridden, slow implementations of some Erlang-style concepts in gevent.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
erlangmode
tests
.gitignore
README.rst
setup.py
tox.ini

README.rst

gevent-erlang-mode

Contains ad hoc, informally-specified, bug-ridden, slow implementations of some Erlang-style concepts, ported to gevent.

The Mailbox

from erlangmode import Mailbox

process = Mailbox()
process << 'reload', {'timeout': 5}

for receive in process:
    if receive(str, dict):
        command, options = receive.match
        run_command(command, options)
        break

See module documentation for more.

Utilities

from erlangmode import send_after
timer = send_after(10, mailbox, 'message')
timer.reset()
timer.cancel()