Inherit the greenpool default size

Change-Id: Ia2dc394a03c748e919f2251f618131daea9d5eca
This commit is contained in:
Joshua Harlow
2013-10-17 17:48:54 -07:00
parent aee68f5e53
commit cd9c69fa56

View File

@@ -92,7 +92,7 @@ class _GreenFuture(futures.Future):
class GreenExecutor(futures.Executor):
"""A greenthread backed executor."""
def __init__(self, max_workers):
def __init__(self, max_workers=1000):
assert int(max_workers) > 0, 'Max workers must be greater than zero'
self._max_workers = int(max_workers)
self._pool = greenpool.GreenPool(self._max_workers)