Skip to content
Myr

async documentation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 5afe11b · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/async.py+3 added-2 removed
22 unmodified lines
23from .packages.urllib3.poolmanager import PoolManager242526__all__ = (27 'map',27 'map', 'get', 'head', 'post', 'put', 'patch', 'delete', 'request'28 'get', 'head', 'post', 'put', 'patch', 'delete', 'request'29)30313132def _patched(f):33 """Patches a given API function to not send."""3435 def wrapped(*args, **kwargs):
32 unmodified lines
68def map(requests, keep_alive=False):69 """Concurrently converts a list of Requests to Responses.7071 :param requests: a collection of Request objects.72 :param keep_alive: If True, HTTP Keep-Alive will be used.73 """7475 if keep_alive:76 pools = PoolManager(num_pools=len(requests), maxsize=1)
11 unmodified lines