aboutsummaryrefslogtreecommitdiff
path: root/examples/spawn.ts
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-26 20:35:26 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-26 20:35:26 -0700
commit5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb (patch)
tree46fd8978a7508e7d2f03bc24a8c1119544b7d80c /examples/spawn.ts
parent24a9bc23b7e1c7911cb2e146be199d940b9729e6 (diff)
downloadbun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.tar.gz
bun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.tar.zst
bun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.zip
Make `Bun.spawn`, FileSink and FileBlobLoader a little more reliable
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);