/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/testdata/coverage/worker/worker2.js
10 строк
240 B
Bartek Iwańczuk
fix(coverage): collect coverage data for workers (#30807)
23 сен 2025, 01:33
Не верифицирован
23 сен 2025, 01:33
ff9840b
Код
Авторство
О чём код?
self.onmessage = () => { postMessage("hello from worker"); }; function onTimeout() { console.log("hello again"); } // This code will not run, because worker will be terminated before // the timeout fires. setTimeout(onTimeout, 5_000);