摘要:
使用asyncio.Queue 使用Queue.task_done 和 Queue.join: 阅读全文
posted @ 2018-03-19 17:15
北京涛子
阅读(249)
评论(0)
推荐(0)
摘要:
使用asyncio.Queue 使用Queue.task_done 和 Queue.join: 阅读全文
posted @ 2018-03-19 17:15
北京涛子
阅读(249)
评论(0)
推荐(0)
摘要:
Threads Subprocess Run a subprocess and read its output Communicate with a subprocess using standard streams 阅读全文
posted @ 2018-03-19 16:34
北京涛子
阅读(983)
评论(0)
推荐(0)
摘要:
server client 阅读全文
posted @ 2018-03-19 12:41
北京涛子
阅读(304)
评论(0)
推荐(0)
摘要:
性能包括2部分 Architecture: Worker processes Stream limits TCP_NODELAY TCP_QUICKACK Tune the Linux kernel 阅读全文
posted @ 2018-03-19 12:06
北京涛子
阅读(310)
评论(0)
推荐(0)
摘要:
```python
import aiohttp
import asyncio
import async_timeout async def fetch(session, url): async with async_timeout.timeout(10): async with session.get(url) as response: retu... 阅读全文
posted @ 2018-03-19 11:26
北京涛子
阅读(192)
评论(0)
推荐(0)
摘要:
如何调度协程,并发运行 asyncio.gather方法可以聚合协程or future 阅读全文
posted @ 2018-03-19 11:22
北京涛子
阅读(131)
评论(0)
推荐(0)
摘要:
利用asyncio的event loop,编写和调度协程 coroutine [,kəuru:'ti:n] n. 协程 Simple coroutine(调用1个协程) Creating tasks(调用多个协程) Stopping the loop 阅读全文
posted @ 2018-03-19 10:55
北京涛子
阅读(144)
评论(0)
推荐(0)
|