src/utils/co.js
function stopTimeout(ctx) {
  assert(ctx);
  if (ctx.timer != null) {
    clearTimeout(ctx.timer);
    ctx.timer = null;
  }
  ctx.stopped = true;
}
function stopTimeout(ctx) {
  assert(ctx);
  if (ctx.timer != null) {
    clearTimeout(ctx.timer);
    ctx.timer = null;
  }
  ctx.stopped = true;
}
function stopTimeout ( ctx ) { assert ( ctx ) ; if ( ctx . timer != null ) { clearTimeout ( ctx . timer ) ; ctx . timer = null ; } ctx . stopped = true ; }
Clear a timeout.
@param {Object} ctx
Clear a timeout .