Skip to content

Commit

Permalink
allow custom timeouts for ux flush (#465)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Donnalley <mdonnalley@salesforce.com>
  • Loading branch information
deian and mdonnalley committed Aug 9, 2022
1 parent 6e61490 commit a5b1e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli-ux/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export const ux = {
}
},

async flush() {
await timeout(flush(), 10_000)
async flush(ms = 10_000) {
await timeout(flush(), ms)
},
}

Expand Down

0 comments on commit a5b1e7d

Please sign in to comment.