async-stream
async-stream copied to clipboard
use `yield new Error()` instead of `throw new Error()`
the former allows you to pass errors to generator runner without going throw the exception system.
This works cleanly with raynos/gens and Agen spec
yield new Error()
doesn't work with co, I don't see the advantage over throwing though