$ magick --version
Version: ImageMagick 7.0.10-3 Q16 x86_64 2020-03-28 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff webp wmf x xml zlib

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Question: does calling reject on a running promise cut it short? | |
// Answer: sort of. It returns to the caller early but it keep running behind | |
// the scenes. So more of a short-circuit than really being cancelled. | |
const printFrequency = 500 | |
const printRounds = 10 | |
const cancelPoint = 7 | |
let someOtherState = 'untouched' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the non-tail-recursive way | |
;(() => { | |
function fac(n) { | |
if (n === 1) { | |
return 1 | |
} | |
const nextFac = fac(n - 1) | |
return n * nextFac // last thing we do it multiply | |
} |
To run this test, copy and paste the script into the JS console of your browser (or use Snippets in Chrome devtools).
The output is:
starting
upgrading
opened1
req1 success
req2 success
req3 success
Note: make sure you view this page on this URL with a trailing slash otherwise images won't work. More info.
An attempt to get the model reporting the kinds of numbers that we'd expect to see based on expert opinion.
All of these runs are done including the "children inherit parent
OlderNewer