gmunozfe opened a new issue, #2188:
URL: https://github.com/apache/incubator-kie-kogito-apps/issues/2188

   ### Description
   
   This is a little enhancement for simplifying  `waitForEvent` method with a 
more modern approach using `CompletableFuture`, which would make the code more 
readable and easy to understand.
   
   ### Implementation ideas
   
   Use `CompletableFuture` because:
   - **Less boilerplate:** Fewer lines of code and no explicit synchronization 
objects (`CountDownLatch` or `AtomicReference`).
   - **Cleaner logic:** It’s more declarative—"wait for this result within X 
seconds"—versus manually blocking and checking.
   
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to