Skip to content

Channel 有不阻塞的方式获取元素吗? #375

Answered by idealvin
ShirenY asked this question in Q&A
Discussion options

You must be logged in to vote

理论上是这样。不过channel性能很差,你自己随便用个队列,加锁,都比channel强

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ShirenY
Comment options

Answer selected by ShirenY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants