Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function App() {
var state = hg.state({
isUpdated: hg.value(false)
});
// Arrange for state to be updated asynchronously
setTimeout(function updateState() {
state.isUpdated.set(true);
}, 2000);
return state;
}
return function wait(done) {
setTimeout(done, t);
};
}
function sendNext() {
if (--counter === 0) {
return setTimeout(invokeCb, 500);
}
cluster.sendRegister(dummy, {
serviceName: 'hello-bob',
host: exitNodes[0].hostPort,
timeout: 500
}, onError);
setTimeout(sendNext, 50);
}
function onResponse(err, resp) {
assert.ifError(err);
assert.equal(resp.body, 'hello from autobahn\n');
setTimeout(function flush() {
app.clients.batchStats.flushStats();
setTimeout(finish, 500);
}, 500);
}
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 => {
Socket.prototype._unrefTimer = function unrefTimer() {
for (var s = this; s !== null; s = s._parent)
timers._unrefActive(s);
};
Socket.prototype._unrefTimer = function unrefTimer () {
for (var s = this; s !== null; s = s._parent) {
timers._unrefActive(s)
}
}
Socket.prototype._unrefTimer = function _unrefTimer() {
for (var s = this; s !== null; s = s._parent)
timers._unrefActive(s);
};
Socket.prototype._unrefTimer = function _unrefTimer() {
for (var s = this; s !== null; s = s._parent)
timers._unrefActive(s);
};
Socket.prototype._unrefTimer = function unrefTimer() {
for (var s = this; s !== null; s = s._parent)
timers._unrefActive(s);
};