mirror of
https://github.com/nesterow/offload.git
synced 2024-11-14 22:14:03 +00:00
8 lines
175 B
TypeScript
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;
|
||
|
});
|