红联Linux门户
Linux帮助

When.js 3.4.0发布,增加when.filter过滤器

发布时间:2014-07-16 09:24:10来源:红联作者:empast
When.js 3.4.0 发布了,改进内容包括:

New when.filter for filtering arrays of promises.

when.map and when.filter now provide the array index as the second param to their mapping and filtering functions.

when/keys.map now provides the associated key to its mapping function.

Smaller ES6 shim.

When.js 是 cujojs 的轻量级的 Promises/A 和 when() 实现,从 wire.js 的异步核心和 cujojs 的 IOC 容器派生而来。包含很多其他有用的 Promiss 相关概念,例如联合多个 promiss、mapping 和减少 promises 集合以及 timed promises 等。

项目主页:https://github.com/cujojs/when

来自:开源中国社区
文章评论

共有 0 条评论