diff options
author | 2022-09-26 20:35:26 -0700 | |
---|---|---|
committer | 2022-09-26 20:35:26 -0700 | |
commit | 5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb (patch) | |
tree | 46fd8978a7508e7d2f03bc24a8c1119544b7d80c /examples/spawn.ts | |
parent | 24a9bc23b7e1c7911cb2e146be199d940b9729e6 (diff) | |
download | bun-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.ts | 2 |
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); |