cb.cancelTimeout(id)

cancelTimeout cancels the timeout identified by id. use the id returned from cb.setTimeout to cancel timeout.

Example Code

function callme will NOT be called in this example since it is canceled.

function callme() {
    cb.sendNotice("hello world");
    cb.setTimeout(callme, 10000);
}
var id = cb.setTimeout(callme, 10000)
cb.cancelTimeout(id);