advance-practice1/graceful-shutdown #1193
Replies: 5 comments 15 replies
-
对于 在
如果按这句话的解释,那是否是说:单独使用 |
Beta Was this translation helpful? Give feedback.
-
将 |
Beta Was this translation helpful? Give feedback.
-
这里没有看的很懂,意思是使用as_ref就可以把Option里的值取出来,然后unwarp看是否是none,不是的话就调用Option中mpsc::Sender的send方法吗?但是为啥as_ref就可以把Option里的值取出来呢? self.sender.as_ref().unwrap().send(j).unwrap() |
Beta Was this translation helpful? Give feedback.
-
我运行了这段代码, 发现发送两个请求之后程序并不会停止, 最后一个worker线程似乎还在阻塞, 再发一个请求才会终止, 这是为什么呢 |
Beta Was this translation helpful? Give feedback.
-
作者你好,我把你的源码复制粘贴执行;先访问/slepp,在访问其它接口会阻塞(变成了单线程);请问是不是代码不完整啊 |
Beta Was this translation helpful? Give feedback.
-
advance-practice1/graceful-shutdown
https://course.rs/advance-practice1/graceful-shutdown.html
Beta Was this translation helpful? Give feedback.
All reactions