Callbacks with concurrent.futures

Ian Kelly ian.g.kelly at gmail.com
Wed Mar 11 15:40:36 EDT 2015


On Wed, Mar 11, 2015 at 1:32 PM, Joseph L. Casale
<jcasale at activenetwerx.com> wrote:
> I have a ProcessPoolExecutor for which I am attaching multiple callbacks.
> As this must be process based and not thread based, I don't have the
> luxury communication between threads. Without a queue, does something
> inherent exist in concurrent futures that allows me to accumulate some
> data from the final callback?

ProcessPoolExecutor is built on the multiprocessing module, so I
expect you should be able to use multiprocessing.Queue or
multiprocessing.Pipe in place of threading.Queue.



More information about the Python-list mailing list