This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
一、异步消息队列
list 可以作为异步队列使用,用rpush和lpop(右进左出)或lpush和rpop(左进右出)
!
当队列为空时,如果一直pop会陷入pop死循环,可以采用与Future.get原理相同的阻塞读方法 blpop/brpop 其中b代表blocking