Skip to content

Commit

Permalink
type error
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Jul 25, 2016
1 parent 57f1158 commit 752982d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/combining-streams-to-handle-errors.md
@@ -1,6 +1,6 @@
# 整合 streams 来处理错误

默认情况下,在 stream 中发生一个错误的话,它会被直接抛出,除非已经有一个时间监听器监听着 `error` 事件。 这在处理一个比较长的管道操作的时候会显得比较棘手。
默认情况下,在 stream 中发生一个错误的话,它会被直接抛出,除非已经有一个事件监听器监听着 `error` 事件。 这在处理一个比较长的管道操作的时候会显得比较棘手。

通过使用 [stream-combiner2](https://github.com/substack/stream-combiner2),你可以将一系列的 stream 合并成一个,这意味着,你只需要在你的代码中一个地方添加监听器监听 `error` 事件就可以了。

Expand Down

0 comments on commit 752982d

Please sign in to comment.