在本文中,我们主要介绍异步容器的内容,自我感觉有个不错的建议和大家分享下
When.js 1.8.0 宣布了. When.js 是 cujojs 的轻量级的 Promises/A 和 when() 现实,从 wire.js 的异步心核和 cujojs 的 IOC 容器派生而来。含包很多其他有效的 Promiss 关相念概,例如结合多个 promiss、mapping 和增加 promises 集合以及 timed promises 等。
该版本进改内容:
- New when/function, when/node/function, and when/callbacks with functional programming goodness, and adapters for turning callback-based APIs into promise-based APIs. Kudos @riccieri!
- New when/unfold, and when/unfold/list promise-aware anamorphic unfolds that can be used to generate and/or process unbounded lists.
- New when/poll promise-based periodic polling and task execution. Kudos @scothis!
下载址地:https://github.com/cujojs/when/archive/1.8.0.tar.gz
文章结束给大家分享下程序员的一些笑话语录: 爱情观
爱情就是死循环,一旦执行就陷进去了。
爱上一个人,就是内存泄露--你永远释放不了。
真正爱上一个人的时候,那就是常量限定,永远不会改变。
女朋友就是私有变量,只有我这个类才能调用。
情人就是指针用的时候一定要注意,要不然就带来巨大的灾难。