Managing greenlets in a group.
The Group class in this module abstracts a group of running greenlets. When a greenlet dies, it’s automatically removed from the group.
The Pool which a subclass of Group provides a way to limit concurrency: its spawn method blocks if the number of greenlets in the pool has already reached the limit, until there is a free slot.
Maintain a group of greenlets that are still running.
Links to each item and removes it upon notification.
alias of Greenlet
Equivalent of the apply() builtin function. It blocks till the result is ready.
A variant of the apply() method which returns a Greenlet object.
If callback is specified then it should be a callable which accepts a single argument. When the result becomes ready callback is applied to it (unless the call failed).
A variant of the map() method which returns a Greenlet object.
If callback is specified then it should be a callable which accepts a single argument.
An equivalent of itertools.imap()
The same as imap() except that the ordering of the results from the returned iterator should be considered in arbitrary order.