0xsky / xredis

Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
GNU General Public License v3.0
337 stars 153 forks source link

subscribe会占满整个线程? #63

Open flyarong opened 2 years ago

flyarong commented 2 years ago

subscribe会占满整个线程,后续逻辑无法进行?

0xsky commented 2 years ago

是的,现在 subscribe 是同步阻塞的,需要单独在一个线程里执行

天罡物论 @.***> 于2022年4月29日周五 10:47写道:

subscribe会占满整个线程,后续逻辑无法进行?

— Reply to this email directly, view it on GitHub https://github.com/0xsky/xredis/issues/63, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHXTHZEY3FY6XSOTDYYYXTVHNEVXANCNFSM5UUMPMHQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

flyarong commented 2 years ago

好的,谢谢。

flyarong commented 2 years ago

能弄个异步吗?