Update notes and documents
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
113d31a592
commit
91978e22d9
10 changed files with 155 additions and 37 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue