Skip to content

Commit

Permalink
Add await for useTerminal
Browse files Browse the repository at this point in the history
  • Loading branch information
yamiteru committed Apr 3, 2023
1 parent 174b714 commit ac7c0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const testBenchmark = defaultSuite("Test", {

(async () => {
// collect data and print them into a terminal
useTerminal();
await useTerminal();

// run all benchmarks and trigger lifecycle events
await testBenchmark();
Expand Down Expand Up @@ -116,7 +116,7 @@ Listens to events and prints suite and benchmark results into a terminal.

```ts
// subscribe to events
useTerminal();
await useTerminal();

// run suite which publishes data to the events
await runBenchmarks();
Expand Down

0 comments on commit ac7c0e5

Please sign in to comment.