mirror of
https://github.com/denoland/deno.git
synced 2024-11-16 16:53:20 -05:00
8 lines
227 B
TypeScript
8 lines
227 B
TypeScript
const encoder = new TextEncoder();
|
|
const pending = [
|
|
Deno.stdout.write(encoder.encode("Hello, ")),
|
|
Deno.stdout.write(encoder.encode("world!")),
|
|
];
|
|
|
|
await Promise.all(pending);
|
|
await Deno.stdout.write(encoder.encode("\n"));
|