juliangruber / juliangruber/async-stream

use `yield new Error()` instead of `throw new Error()`

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
133
Forks
1
PR merge metrics
No merged PRs in 30d

Description

the former allows you to pass errors to generator runner without going throw the exception system.

This works cleanly with [raynos/gens](https://github.com/Raynos/gens) and [Agen spec](https://github.com/AsynchronousGenerators/agen-spec/issues/7)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.