[PATCH 1 of 4] wireproto: add basic command batching infrastructure

Antoine Pitrou solipsis at pitrou.net
Thu Jun 16 09:21:30 CDT 2011


On Thu, 16 Jun 2011 14:20:57 +0200
Peter Arrenbrecht <peter.arrenbrecht at gmail.com> wrote:
> 
> > i'm not a fan of 'future', is it an object? i can't tell from this.
> 
> It's a fairly established term for a thing that you get back from a
> call immediately with the promise that, when you access the thing's
> value later, it will hold the actual result of the call. So it's
> sometimes called a 'promise', too.

For the record, if you need a futures API in Python, you may want to
take a look at the new concurrent.futures module:
http://docs.python.org/dev/library/concurrent.futures.html#future-objects

Regards

Antoine.




More information about the Mercurial-devel mailing list