Skip to content

Commit

Permalink
update readme.m
Browse files Browse the repository at this point in the history
  • Loading branch information
testzj committed Nov 4, 2019
1 parent 3703409 commit d9de1d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions benchmark/package.json
Expand Up @@ -4,13 +4,13 @@
"description": "Compare the performance and code of multiple async patterns",
"main": "run.js",
"dependencies": {
"async": "1.5.2",
"neo-async": "1.8.2",
"async": "*",
"neo-async": "*",
"optimist": "^0.6.1",
"bluebird": "2.11.0",
"when": "3.7.8",
"co": "4.6.0",
"cc_co":"*"
"bluebird": "*",
"when": "*",
"co": "*",
"cc_co": "*"
},
"devDependencies": {},
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions readme.md
Expand Up @@ -6,7 +6,7 @@

[中文](https://github.com/yyrdl/zco/blob/master/readmes/readme_ch.md)

Generator based control flow, no other dependence.
Generator based control flow with good performance, no other dependence.

Recommend versions of node.js which support the destructuring assignment syntax.

Expand Down Expand Up @@ -238,7 +238,7 @@ Full code [here](https://github.com/yyrdl/zco_example/tree/master/defer)

### 5. Consecutive Error Stack

As you know ,if an error occurred in an asynchronous function, it will lose call-stack which make it difficult to debug .
If an error occurred in an asynchronous function, we will lose callstack which make it difficult to debug .

__Solve What__: Support Consecutive Error Stack

Expand Down Expand Up @@ -298,6 +298,8 @@ We get the full clear chain of function call ,try it by yourself :)

full code [here](https://github.com/yyrdl/zco_example/tree/master/consecutive_stack)

In order to get best performance, you can turn off this feature globally by call `zco.__TrackCallStack(false)`,nearly 2x faster.

### 6.zco.brief

zco suppose it's possible that all operations will go wrong, so the first return-value always be error,the second one is the exact result returned by yourself.Error in different place has different meaning,we can deal with them in different way.
Expand Down

0 comments on commit d9de1d8

Please sign in to comment.