X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fjavascript%2FdynamicExample.js;h=3428170929d49c05d6e2b0b794b875377e0a77a8;hb=dcbe4226bec6b3eab0fc327bde2c37d0e7effba6;hp=21fe9050ead512abecc90def3ccc61c6668db433;hpb=8ad621cc1d32ed396fca3ef2ec48337e42d2dcc2;p=poolifier.git diff --git a/examples/javascript/dynamicExample.js b/examples/javascript/dynamicExample.js index 21fe9050..34281709 100644 --- a/examples/javascript/dynamicExample.js +++ b/examples/javascript/dynamicExample.js @@ -30,10 +30,10 @@ for (let i = 1; i <= iterations; i++) { .then(() => { resolved++ if (resolved === iterations) { - console.info('Time taken is ' + (performance.now() - start)) - console.info('The pool was full for ' + poolFull + ' times') - console.info('The pool was ready for ' + poolReady + ' times') - return console.info('The pool was busy for ' + poolBusy + ' times') + console.info(`Time taken is ${performance.now() - start}`) + console.info(`The pool was full for ${poolFull} times`) + console.info(`The pool was ready for ${poolReady} times`) + return console.info(`The pool was busy for ${poolBusy} times`) } return null })