code: public static Interval create (RunQueue runQueue, final Runnable onExpired)
      {
          // we could probably avoid all the wacky machinations internal to Interval that do the
          // runbuddy reposting and whatever and just create a non-runqueue interval that posts the
          // supplied runnable to the runqueue when it expires, but we'll just punt on that for now
          return new Interval(runQueue) {
              @Override public void expired () {
                  onExpired.run();
              }
              @Override public String toString () {
                  return onExpired.toString();
              }
          };
      }
docs: Creates an interval that executes the supplied runnable on the specified RunQueue when it
  expires.