1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tests/stdout_write_all.ts

8 lines
234 B
TypeScript

const encoder = new TextEncoder();
const pending = [
Deno.stdout.write(encoder.encode("done\n")),
Deno.stdout.write(encoder.encode("done\n")),
];
await Promise.all(pending);
await Deno.stdout.write(encoder.encode("complete\n"));