Nick Coghlan added the comment:

No, I mean implementing communicating sequential processes with independent 
state machines passing messages to each other. There aren't necessarily any 
fixed request/reply pairs. Each actor has a "mailbox", which is a queue that 
you dump its messages into. If you want a reply, you'll include some kind of 
addressing info to get the answer back rather than receiving it back on the 
channel you used to send the message.

For threads, the addressing info can just be a queue.Queue reference for your 
own mailbox, for multiple processes it can either be multiprocessing queue, or 
any other form of IPC.

It's a very different architecture from that assumed by futures, so you need to 
drop down to the pool layer rather than using the executor model.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17140>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to