We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27add6b commit ffd2a2dCopy full SHA for ffd2a2d
README.md
@@ -46,10 +46,10 @@ You can keep writing records into the same file by calling `writeRecords` multip
46
(but need to wait for the fulfillment of the `promise` of the previous `writeRecords` call).
47
48
```js
49
-Promise.resolve()
50
- .then(() => csvWriter.writeRecords(records1))
51
- .then(() => csvWriter.writeRecords(records2))
52
- ...
+// In an `async` function
+await csvWriter.writeRecords(records1)
+await csvWriter.writeRecords(records2)
+...
53
```
54
55
However, if you need to keep writing large data to a certain file, you would want to create
0 commit comments