lhotari commented on issue #15774:
URL: https://github.com/apache/pulsar/issues/15774#issuecomment-1136968694

   Since we are now on Java 17, it would be possible to start leveraging Java 
API methods that have been added since Java 8.
   
   One useful method is 
[`CompletableFuture.orTimeout`](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html#orTimeout(long,java.util.concurrent.TimeUnit))
 . It's a simple way to add a timeout to a Completable Future. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to