Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

Scheduling tasks with Eclipse Vert.x

cescoffier
7,914 views

Cancelling timers

To cancel a timer (one-shot or periodic), call cancelTimer specifying the timer id:

Cancelling a timer
package io.vertx.playground;
import io.vertx.core.Vertx;
public class CancellationExample {
private static int counter = 0;
public static void main(String... args) {
Vertx vertx = Vertx.vertx();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants