code: public static void await(String name) throws InterruptedException {
      try (LockResource r = new LockResource(sLock)) {
        while (!sTimers.containsKey(name)) {
          sCondition.await();
        }
      }
    }
docs: Waits for the given thread to be ready to be scheduled.
  
  @param name a name of the thread to wait for
  @throws InterruptedException if the waiting thread is interrupted