async.py 文件源码

python
阅读 37 收藏 0 点赞 0 评论 0

项目:PyS60-Projects 作者: gauravssnl 项目源码 文件源码
def send(r, pool=None):
    """Sends the request object using the specified pool. If a pool isn't 
    specified this method blocks. Pools are useful because you can specify size
    and can hence limit concurrency."""

    if pool != None:
        return pool.spawn(r.send)

    return gevent.spawn(r.send)


# Patched requests.api functions.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号