D
Deno

help

How to recover from worker death? It terminates my main program…

Jjcayzac7/14/2023
In the error message handler, I replace the dead worker with a new one, but it kills my program either way. Full repro & log at https://gist.github.com/jcayzac/48ae8304a6b3c790353c52f98e242904 Thanks!
Gist
Deno worker death
Deno worker death. GitHub Gist: instantly share code, notes, and snippets.
AAapoAlas7/14/2023
woker.addEventListener("error", () => null) Oh, you do have an error listener. Possibly ev.preventDefault()?
Jjcayzac7/14/2023
@aapoalas thanks, preventDefault() worked!

Looking for more? Join the community!