docs: public void single(long weight) throws InterruptedException {
          try {
              lock.lockInterruptibly();
              threshold = weight;
              condition.signalAll();
          } finally {
              lock.unlock();
          }
      }