gevent.threadpool
¶ThreadPool
(maxsize, hub=None)¶Bases: gevent.pool.GroupMappingMixin
maxsize
¶size
¶join
()¶Waits until all outstanding tasks have been completed.
kill
()¶adjust
()¶spawn
(func, *args, **kwargs)¶Add a new task to the threadpool that will run func(*args, **kwargs)
.
Waits until a slot is available. Creates a new thread if necessary.
Returns: | A gevent.event.AsyncResult . |
---|
apply_e
(expected_errors, function, args=None, kwargs=None)¶Deprecated since version 1.1a2: Identical to apply()
; the expected_errors
argument is ignored.
Next page: gevent.util