Examples of cancel()


Examples of reactor.timer.Timer.cancel()

  public Timer getTimer() {
    if (null == timer.get()) {
      synchronized (timer) {
        Timer t = new HashWheelTimer();
        if (!timer.compareAndSet(null, t)) {
          t.cancel();
        }
      }
    }
    return timer.get();
  }
View Full Code Here

Examples of spark.api.Command.cancel()

    }).start();
   
    Thread.sleep(5000);
    log("canceling query 1");
    c.cancel();
    c2.cancel();
    done.await();
    log("query 1 thread done");
   
    final CountDownLatch query = new CountDownLatch(1);
    final CountDownLatch cancel = new CountDownLatch(1);
View Full Code Here

Examples of test.shell.base.BaseProcessContext.cancel()

    // We should have been interrupted
    assertTrue(interruptDoCancel);

    //
    ctx.cancel();
    ShellResponse resp = ctx.getResponse();
    assertEquals(ShellResponse.Cancelled.class, resp.getClass());
    assertTrue(interruptInterrupted);
    while (true) {
      Boolean b = interrupted.get();
View Full Code Here

Examples of tripleplay.util.Timer.Handle.cancel()

    }

    protected void evaluateGestures (final GestureNode node) {
        // dispatch a pause event on touches that haven't moved for PAUSE_DELAY.
        Handle handle = _currentMoves.remove(node.touch.id());
        if (handle != null) handle.cancel();
        if (node.type == GestureNode.Type.MOVE || node.type == GestureNode.Type.START) {
            handle = _timer.after(_pauseDelay, new Runnable() {
                @Override public void run () { onTouchPause(node.touch); }
            });
            _currentMoves.put(node.touch.id(), handle);
View Full Code Here

Examples of winterwell.utils.TimeOut.cancel()

      // executor
      // - but it's useful in debugging.
      throw Utils.runtime(e);
    } finally {
      if (timeOut != null) {
        timeOut.cancel();
      }
      if (runner != null) {
        runner.done(this);
      }
      // drop references
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.