Bob and I were just startled to see that you can't set schedule a timer to
zero:

  /**

   * Schedules a timer to elapse in the future.

   *

   * @param delayMillis how long to wait before the timer elapses, in

   *          milliseconds

   */

  public void schedule(int delayMillis) {

    if (delayMillis <= 0) {

      throw new IllegalArgumentException("must be positive");

    }

    ...

0 is JavaScript's convention for "do this in the next cycle of the event
pump." Why are we preventing its use?
rjrjr

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to