Alvin

Results 65 comments of Alvin

> @idealvin 我觉得可以调用异步客户端返回后直接yield, 以在call_back(异步客户端框架的线程中)中调用唤醒. 不过我是直接在call_back中调用了add_ready_task. 这样就集成了. 你觉得呢 这样是可以的,可以贴下代码,看看还需要暴露哪些接口

> > > @idealvin 我觉得可以调用异步客户端返回后直接yield, 以在call_back(异步客户端框架的线程中)中调用唤醒. 不过我是直接在call_back中调用了add_ready_task. 这样就集成了. 你觉得呢 > > > > > > 这样是可以的,可以贴下代码,看看还需要暴露哪些接口 > > 我用add_ready_task实现啦, 目前不用暴露了. 不过如果可以封装成比如signal唤醒更合适一些. 已经增加了 `co::coroutine()`, `co::resume()` 两个接口,具体用法见 [test/yield.cc](https://github.com/idealvin/coost/blob/master/test/yield.cc).

@neoblackcap `co::connect` 返回值是 int 类型,返回0 表示连接成功

看下源码 src/co/sock_win.cc,检查下有没有打印出什么日志

> The API in JSON module described in the docs are not compatible in the latest release version(2.0.3). > > I hope there could be a new release version and...

Cmake config has not been pushed to vcpkg yet, should be supported in the next release.