You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/07 06:49:51 UTC

[GitHub] [pulsar-client-node] k2la edited a comment on issue #152: Interruptible Reader.readNext()?

k2la edited a comment on issue #152:
URL: https://github.com/apache/pulsar-client-node/issues/152#issuecomment-834007036


   @rkaw92 
   Is it possible to solve this problem by implementing ReaderListener, which is implemented in C++ Client and C APIs, in Node.js Client?
   By using ReaderListener, asynchronous read is possible, and read will also stop when close is done.
   
   C++: https://github.com/apache/pulsar/blob/6704f12104219611164aa2bb5bbdfc929613f1bf/pulsar-client-cpp/lib/ReaderConfiguration.cc#L43-L47
   C API: https://github.com/apache/pulsar/blob/6704f12104219611164aa2bb5bbdfc929613f1bf/pulsar-client-cpp/lib/c/c_ReaderConfiguration.cc#L34-L51


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org