有多线程的使用例子么 #301
Unanswered
380wmda999
asked this question in
Q&A (问题和回答)
有多线程的使用例子么
#301
Replies: 2 comments 8 replies
This comment has been minimized.
This comment has been minimized.
-
目前没有多线程的示例server。后续版本会提供。
Server可以创建多个线程,各线程创建独立的Endpoint并运行各自的事件循环 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我看官方给的demo simple_server.rs 是基于单线程 遍历事件处理的
如果多线程 官方推荐的应该的怎么处理呢
是创建一个线程池 来处理 还是 ?
有没有这方面的例子
Beta Was this translation helpful? Give feedback.
All reactions