Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

协程不是为了异步代码同步化吗?引入协程是为了消除回调函数,为什么sylar里还有回调函数的存在???? #38

Open
XiaoyuNoFish opened this issue Mar 3, 2024 · 2 comments

Comments

@XiaoyuNoFish
Copy link

No description provided.

@Kaleido76
Copy link

我的个人理解哈,轻喷,或许协程的“消除回调函数”实际上本质目的是为了消除回调函数而不是为了彻底消除回调函数?

@LunarStore
Copy link

看看muduo,再看看sylar,sylar消除回调指消除网络编程的回调,用户在用网络库的时候,你还需要写各种回调函数吗?直接同步编程就完了。完全不用回调就实现一个异步性能?你在做梦吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants