0.33: Merge pull request #30 from digipost/countdown-targetstate
A TargetState is used to determine is a certain state has been reached yet, commonly by querying TargetState.yet()
:
final TargetState cancelled;
...
if (!cancelled.yet()) {
// do work
}
A CountDown is an internally managed TargetState
which by itself reaches its target state of "count down reached zero" after an exact amount of queries to CountDown.yet()
.
The typical use-case for this is testing.