Skip to content

Ad hoc, informally-specified, bug-ridden, slow implementations of some Erlang-style concepts in gevent.

Notifications You must be signed in to change notification settings

miracle2k/gevent-erlang-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Ad hoc, informally-specified, bug-ridden, slow implementations of some Erlang-style concepts in gevent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages