maybe you wanna look into `org.elasticsearch.common.util.concurrent.CountDown` for this purpose.... this class allows you to call `#await` which I think is not what you want?