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

EventLoop 类可以脱离socket使用吗?比如我在其他业务场景使用 #137

Open
qht1003077897 opened this issue Dec 12, 2022 · 4 comments

Comments

@qht1003077897
Copy link

No description provided.

@IronsDu
Copy link
Owner

IronsDu commented Dec 13, 2022

可以的。它可以作为一个job task框架(A线程投递异步函数-即job 到EventLoop,B线程从此EventLoop中处理job-即执行异步函数)

@IronsDu
Copy link
Owner

IronsDu commented Dec 13, 2022

folly等库里也有类似的,叫executor。

@qht1003077897
Copy link
Author

好的,我不想引入其他库的目的是为了让项目更轻,能复用的就复用。

@IronsDu
Copy link
Owner

IronsDu commented Dec 14, 2022

如果你有用包管理的话,其实就无所谓,大胆的用,宜用尽用……

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

2 participants