Docs for web worker in Deno:<https://deno.land/manual@v1.35.3/runtime/workers> You should refactor the code in `main.ts` to use web worker. If needed, you can change the code in `lib/*.ts`. `main.ts` should contain the error handling func.