38. ・直列処理
Generator with co
$ time node --harmony generator.js
Sync 1
Async 1
Async 2
Async 3
# node --harmony generator.js 0.06s user 0.02s system 2% cpu 3.081 total
40. ・直列処理
Generator with co
$ time node --harmony generator.js
Sync
aSyNc
ASYNC
async
# node --harmony generator.js 0.07s user 0.02s system 2% cpu 3.074 total
43. ・Error Handling
$ time node --harmony generator.js
Sync 1
Error: err!
# node --harmony generator.js 0.08s user 0.03s system 10% cpu 1.103 total
Generator