aboutsummaryrefslogtreecommitdiff
path: root/examples/spawn.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/spawn.ts')
-rw-r--r--examples/spawn.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/spawn.ts b/examples/spawn.ts
index c29cc4f21..ff53d84ea 100644
--- a/examples/spawn.ts
+++ b/examples/spawn.ts
@@ -18,6 +18,6 @@ const proc = spawn({
const result = await readableStreamToText(proc.stdout);
-await proc.exitStatus;
+await proc.exited();
console.log(result);