0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-13 17:25:28 -05:00
denoland-deno/tests/specs/future/runtime_api/worker.js
Asher Gomez f248050cb4
chore: use @std prefix for internal module specifiers (#24543)
This change aims to replace all relative import specifiers targeted at
`tests/util/std` with mapped ones (using a `deno.json` file). Towards
updating the `std` git submodule.
2024-07-25 10:26:54 +10:00

5 lines
167 B
JavaScript

import { delay } from "@std/async/delay.ts";
const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" });
await delay(1_000);
worker.terminate();