Skip to content

Commit 62506c3

Browse files
committed
Update Async_Programing_In_JavaScript.md
1 parent b71c736 commit 62506c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/JavaScript_Core/Functional_JavaScript/Async_Programing_In_JavaScript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ EM::run do
3535
end
3636
```
3737

38-
由于Ruby的标准库里面的API全是同步的,异步的只有类似EventMachine这样的第三方API才能提供支持。实际风格上,两者类似,就我们这个例子来说,JavaScript的版本似乎更加简介,而且不需要添加额外的第三方模块。
38+
由于Ruby的标准库里面的API全是同步的,异步的只有类似EventMachine这样的第三方API才能提供支持。实际风格上,两者类似,就我们这个例子来说,JavaScript的版本似乎更加简洁,而且不需要添加额外的第三方模块。
3939

4040
异步模式,相比线程模式,损耗更小,在部分场景性能甚至比Java更好[^2]。并且,`non-blocking`的API是node默认的,这使nodejs和它的异步回调大量应用。
4141

@@ -343,4 +343,4 @@ $("#sexyButton").on("click", function(data) {
343343
[^4]: http://wiki.ecmascript.org/doku.php?id=strawman:concurrency
344344
[^5]: http://promises-aplus.github.io/promises-spec/
345345
[^6]: http://thanpol.as/javascript/promises-a-performance-hits-you-should-be-aware-of/
346-
[^7]: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/
346+
[^7]: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/

0 commit comments

Comments
 (0)