From 299fa3489b6c1ed0e7dc5df6c297639934db8edb Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Sun, 8 Jan 2012 17:17:23 -0600 Subject: Add dependency on the backported python 3.2 concurrent.futures (Bitbake rev: 774f59f06e65a35df597aa77c0fa06ab66c46906) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- bitbake/lib/concurrent/futures/__init__.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bitbake/lib/concurrent/futures/__init__.py (limited to 'bitbake/lib/concurrent/futures/__init__.py') diff --git a/bitbake/lib/concurrent/futures/__init__.py b/bitbake/lib/concurrent/futures/__init__.py new file mode 100644 index 0000000000..b5231f8aab --- /dev/null +++ b/bitbake/lib/concurrent/futures/__init__.py @@ -0,0 +1,18 @@ +# Copyright 2009 Brian Quinlan. All Rights Reserved. +# Licensed to PSF under a Contributor Agreement. + +"""Execute computations asynchronously using threads or processes.""" + +__author__ = 'Brian Quinlan (brian@sweetapp.com)' + +from concurrent.futures._base import (FIRST_COMPLETED, + FIRST_EXCEPTION, + ALL_COMPLETED, + CancelledError, + TimeoutError, + Future, + Executor, + wait, + as_completed) +from concurrent.futures.process import ProcessPoolExecutor +from concurrent.futures.thread import ThreadPoolExecutor -- cgit v1.2.3-54-g00ecf