Skip to content

Commit

Permalink
feat(tasks): suppress stdin on parallel tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 8, 2021
1 parent 667f519 commit cd91867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tasks/aggregate/parallel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Empty, NullaryFn, Members } from 'type-core';
/**
* Returns a `Task` that will run in parallel
* a set of given tasks.
* Suppresses the context's stdin.
* For tasks passed as arguments, the route
* will be left unmodified, while task
* lists and records will inherit their
Expand Down Expand Up @@ -34,6 +35,7 @@ export function parallel(
items.map((task) => {
return run(task, {
...ctx,
stdio: [null, ctx.stdio[1], ctx.stdio[2]],
cancellation: new Promise((resolve) => {
cbs.push(resolve);
})
Expand Down

0 comments on commit cd91867

Please sign in to comment.