node-progress icon indicating copy to clipboard operation
node-progress copied to clipboard

Progress bar doesn't render in sync function with renderThrottle: 0

Open MikeDevice opened this issue 8 years ago • 2 comments

Here is code

var ProgressBar = require('progress');

var bar = new ProgressBar(':bar', {
  total: 10,
  renderThrottle: 0
});

for (var i = 0; i < 10; i++) {
  for (var j = 0; j < 1e9; j++) {}
  bar.tick();
  bar.render(); // if comment this line, progress will not be render
}

MikeDevice avatar Jun 10 '17 21:06 MikeDevice

I think the latest fix is not released to npm yet

https://github.com/visionmedia/node-progress/commit/f37469e575bf3f49e8ae1a09715833061ae81b1f

larshp avatar Jun 11 '17 04:06 larshp

Yes. This lib was not released after that fix

MikeDevice avatar Jun 15 '17 17:06 MikeDevice