diff --git a/README.md b/README.md index abfa61c..cc7f29b 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,13 @@ await $`echo 5`; // outputs: 5 // more complex example outputting 1 to stdout and 2 to stderr await $`echo 1 && deno eval 'console.error(2);'`; + +// parallel +await Promise.all([ + $`sleep 1 ; echo 1`, + $`sleep 2 ; echo 2`, + $`sleep 3 ; echo 3`, +]); ``` ### Getting output diff --git a/src/common.ts b/src/common.ts index a84259d..b031019 100644 --- a/src/common.ts +++ b/src/common.ts @@ -177,7 +177,7 @@ export async function safeLstat(path: string) { } } -/** lstate that doesn't throw when the path is not found. */ +/** lstat that doesn't throw when the path is not found. */ export function safeLstatSync(path: string) { try { return Deno.lstatSync(path);