You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,8 @@ This module will automatically buffer incoming data if `.next` hasn't been calle
45
45
46
46
-`onClose`: A function that's called with whatever you resolve from the listener after the async iterator is done, perfect to do cleanup
47
47
-`onError`: A function that's called with any error that happens in the listener or async iterator
48
-
-`buffering`: (default: `true`) Whether incoming values should be buffered before the async iterator starts listening or not
48
+
-`buffering`: (default: `true`) Whether incoming values should be buffered in between requests for the next value in the async iterable (note: disabling this will make your iterator "lossy" if you don't immediately call `.next()`)
49
+
49
50
50
51
```js
51
52
asyncify(listenToNewMessages, {
@@ -56,7 +57,6 @@ asyncify(listenToNewMessages, {
56
57
onError: (err) => {
57
58
errorTracking.capture(err);
58
59
},
59
-
// Don't buffer incoming messages before the async iterator starts listening
0 commit comments