How to use the timers.clearTimeout function in timers

To help you get started, we’ve selected a few timers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github QTGate / QTGate-Desktop-Client / app / imap.js View on Github external
const doCallBack = (err, ret) => {
        if (!callbackCall) {
            console.trace('imapAccountTest doCallBack');
            saveLog(`imapAccountTest doing callback err [${err && err.messgae ? err.messgae : `undefine `}] ret [${ret ? ret : 'undefine'}]`);
            callbackCall = true;
            timers_1.clearTimeout(timeout);
            return CallBack(err, ret);
        }
    };
    let rImap = new qtGateImapRead(IMapConnect, listenFolder, false, mail => {
github sidorares / node-mysql2 / lib / connection.js View on Github external
close() {
    if (this.connectTimeout) {
      Timers.clearTimeout(this.connectTimeout);
      this.connectTimeout = null;
    }
    this._closing = true;
    this.stream.end();
    this.addCommand = this._addCommandClosedState;
  }
github QTGate / CoNET / core / tools / imap.js View on Github external
const doCallBack = (err, ret) => {
        if (!callbackCall) {
            saveLog(`imapAccountTest doing callback err [${err && err.messgae ? err.messgae : `undefine `}] ret [${ret ? ret : 'undefine'}]`);
            callbackCall = true;
            timers_1.clearTimeout(timeout);
            return CallBack(err, ret);
        }
    };
    let rImap = new qtGateImapRead(IMapConnect, listenFolder, false, mail => {

timers

A tiny cron-like tools for humman.

MIT
Latest version published 11 years ago

Package Health Score

50 / 100
Full package analysis

Similar packages