callback-to-async-iterator
callback-to-async-iterator copied to clipboard
onClose doesn't handle errors from async functions
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