class Latch : CountDownLatch
Adds some superpowers to good old CountDownLatch, like exposed lockedProperty or ability to release latch immediately.
By default, initializes a latch with a count of
1, which means that the first invocation of countDown will
allow all waiting threads to proceed.
All documentation of superclass applies here. Default behavior has not been altered.
Locked state of this latch.
Locked state of this latch exposed as a property. Keep in mind that latch instance can be used only once, so this property has to rebound every time.
Releases latch immediately and allows waiting thread(s) to proceed. Can be safely used if this latch has been