When.js 3.5.0 发布,改进了 race 的性能

jopen 11年前

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

When.js 3.5.0 发布了,改进内容包括:

  • Improve when.race & Promise.race performance.

  • Internal changes to start paving the way toward 4.0.0.

  • Deprecate when.iterate and when.unfold.  Use cujoJS/most for streaming asynchronous values.

  • Deprecate progress events. See the docs for more information and tips on refactoring code that uses promise progress.

项目地址:https://github.com/cujojs/when
来自:http://www.oschina.net/news/55784/whenjs-3-5-0