Contains ad hoc, informally-specified, bug-ridden, slow implementations of some Erlang-style concepts, ported to gevent.
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.
from erlangmode import send_after timer = send_after(10, mailbox, 'message') timer.reset() timer.cancel()