code: public void reset() {
          if (released.compareAndSet(true, false)) {
              synchronized (releasingLock) {
                  if (!released.get()) {
                      impl.drainPermits();
                  }
              }
          }
      }
docs: Resets the latch to an un-release state.