yyzybb537 / libgo

Go-style concurrency in C++11
MIT License
3.18k stars 754 forks source link

如果我使用了这个库,是不是我的mysql所有操作,自动就协程化了?同步写代码,实际已经异步i/o。 #294

Open xs-411 opened 1 year ago

xs-411 commented 1 year ago

如果我使用了这个库,是不是我的mysql所有操作,自动就协程化了?同步写代码,实际已经异步i/o。

hnwyllmm commented 1 year ago

是的,底层会自动hook你的耗时操作,比如网络io发自我的 iPhone在 2023年3月31日,18:51,secret @.***> 写道: 如果我使用了这个库,是不是我的mysql所有操作,自动就协程化了?同步写代码,实际已经异步i/o。

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>