title: Can't cancel repeat timer in GWT
body: <p>I am trying to schedule a repeating timer in GWT, it will run every one milli second, poll for a certain event, if it is found satisfactory, do something and cancel the timer.
  I tried doing this:</p>
  
  <pre><code>final Timer t = new Timer() {
      public void run() {
          if (..condition is true, exit) {
              t.cancel();
              doSomething();
          }
      }
  }
  t.scheduleRepeating(1);
  </code></pre>
  
  <p>However, I get an error message like <strong>the local variable t may not have been initialized</strong>. I am putting tis piece of code in the <code>onSuccess</code> clause of a <code>RequestBuilder</code> callback.. How do I achieve this?</p>