Skip to content

Commit

Permalink
Updated snippet as it looked dated
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu1kn committed Jan 18, 2020
1 parent 27add6b commit ffd2a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ You can keep writing records into the same file by calling `writeRecords` multip
(but need to wait for the fulfillment of the `promise` of the previous `writeRecords` call).

```js
Promise.resolve()
.then(() => csvWriter.writeRecords(records1))
.then(() => csvWriter.writeRecords(records2))
...
// In an `async` function
await csvWriter.writeRecords(records1)
await csvWriter.writeRecords(records2)
...
```

However, if you need to keep writing large data to a certain file, you would want to create
Expand Down

0 comments on commit ffd2a2d

Please sign in to comment.