Add set_default_executor().

This commit is contained in:
Guido van Rossum 2012-12-16 20:01:54 -08:00
parent a095c0d53b
commit 7a660f8674
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,9 @@ Some methods in the standard conforming interface return Futures:
executor? Should be be able to set its thread count? Shoul we even executor? Should be be able to set its thread count? Shoul we even
have this method?) have this method?)
- ``set_default_executor(executor)``. Set the default executor used
by ``run_in_executor()``.
- ``getaddrinfo(host, port, family=0, type=0, proto=0, flags=0)``. - ``getaddrinfo(host, port, family=0, type=0, proto=0, flags=0)``.
Similar to the ``socket.getaddrinfo()`` function but returns a Similar to the ``socket.getaddrinfo()`` function but returns a
Future. The Future's result on success will be a list of the same Future. The Future's result on success will be a list of the same