Update notes and documents
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-10-27 14:33:47 +02:00
parent 113d31a592
commit 91978e22d9
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
10 changed files with 155 additions and 37 deletions

View file

@ -9,20 +9,21 @@
<body>
Hello World!
<script>
const time = 250;
let workers = [];
function startWorkers() {
for (let i = 0; i < 8; i++) {
workers.push(new Worker("worker.js"));
}
setTimeout(stopWorkers, 2000);
setTimeout(stopWorkers, time);
}
function stopWorkers() {
for (const worker of workers) {
worker.terminate();
}
setTimeout(startWorkers, 2000);
setTimeout(startWorkers, time);
}
startWorkers();
</script>