tnie / aclient

使用 asio 异步方式进行简单的 http get 或 post 请求

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如果 co_spawn() 和其中的 async_xx() 操作使用不同的 io_context 会发生什么

tnie opened this issue · comments

正确执行。但如何理解呢?

[2021-03-24 16:22:03.660] [9200] [info] waiting 1s ...
[2021-03-24 16:22:04.662] [5616] [info] hello coro @use_coro.
[2021-03-24 16:22:04.662] [5616] [info] iox 2 handlers were executed
[2021-03-24 16:22:04.663] [12104] [info] ioc 1 handlers were executed
请按任意键继续. . .