Source code

Revision control

Copy as Markdown

Other Tools

/**
* Any copyright is dedicated to the Public Domain.
*/
var counter = 0;
var interval = setInterval(function () {
postMessage(++counter);
}, 100);
onmessage = function (event) {
clearInterval(interval);
};