mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
9 lines
234 B
TypeScript
9 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"));
|