blob: d9c4acf9cbdb7997fa05769f030b1b634cf5eae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var count = 0;
function timer() {
var n = ++count;
console.log("WORKER SAYS HELLO! " + n);
}
setInterval(timer, 1000);
self.onmessage = function onmessage() {
console.log("hi");
};
|