offload/__test__/echo-1s.worker.ts
Anton Nesterov 2d559dfb31
init
2024-10-25 23:19:39 +02:00

8 lines
175 B
TypeScript

import { handler } from "../mod.ts";
declare var self: Worker;
handler(async (data: any) => {
await new Promise((resolve) => setTimeout(resolve, 1000));
return data;
});