Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add generic count down mechanism #3910
In our code we often need to wait for multiple events to happen up to a timeout (mainly in the node acknowledgement logic), and we then notify some listener. We usually do it using an
It would be nice to have a single way to achieve this, having a class (e.g. CountDown) that exposes this behaviour, which can be thoroughly tested and used whenever we need to.