callback-to-async-iterator icon indicating copy to clipboard operation
callback-to-async-iterator copied to clipboard

Turn any callback-based listener into an async iterator.

Results 6 callback-to-async-iterator issues
Sort by recently updated
recently updated
newest added

Currently, `callback-to-async-iterator` is written using ES6 modules, and transpiled to CommonJS using [babel-plugin-transform-modules-commonjs](https://babeljs.io/docs/en/babel-plugin-transform-modules-commonjs). The export in the result file in the `dist` folder looks like this: ``` js exports.default =...

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request. ### What changed?...

depfu

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request. ### What changed?...

depfu

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request. ### What changed?...

depfu

Currently, onClose can get called before the listener is able to produce a value. Also, any error raised in onClose is swallowed if the onClose function is a promise. This...

Currently, if your onClose handler is a promise and an error is thrown, the error is absorbed. It would be nice if onError was called with the error