async-iterable-stream
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "async-iterable-stream", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A readable async stream which can be iterated over using a for-await-of loop.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,3 +21,3 @@ # async-iterable-stream | ||
- `next`: Returns a `Promise` which will resolve an object in the form `{value: data, done: boolean}` whenever some data is received or when the stream ends. | ||
- `once`: Similar to `next()` except that the resolved value will be the raw data and it will not resolve when the stream ends. Note that once `once()` is called, it cannot be cancelled; the affected closure will stay in memory until either `once()` resolves or until the stream is garbage collected. | ||
- `once`: Similar to `next()` except that the resolved value will be the raw data and it will not resolve when the stream ends. Note that once `once()` is called, it cannot be cancelled; the affected closure will stay in memory until either `once()` resolves or until the stream is ended or garbage collected. | ||
@@ -24,0 +24,0 @@ ```js |
@@ -22,3 +22,3 @@ const AsyncIterableStream = require('../index'); | ||
describe('AsyncIterableStream as a generator wrapper', () => { | ||
describe('AsyncIterableStream', () => { | ||
let streamData; | ||
@@ -25,0 +25,0 @@ let stream; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6566