Releases
Jeremy Grelle
February 14, 2013
Dear Spring Community,
We are pleased to announce the release of when.js 1.8.0.
When.js is cujojs’s lightweight Promises/A and when() implementation, derived from the async core of wire.js, cujojs’s IOC Container. It also provides several other useful Promise-related concepts, such as joining multiple promises, mapping and reducing collections of promises, and timed promises.
Among other things, this release includes an extensive set of adapters for working with existing callback-based APIs, including node-style async APIs, allowing you to effectively convert them into promise-aware functions. In addition, most of the new features in this release are community contributions, which is awesome. Keep it coming!
Some specific highlights include:
Adapters for promisifying existing callback-based code.
Mechanisms for generating and processing unbounded/infinite lists
Promise-based periodic polling utility.
Check out the changelog for more info and direct links to docs for all the new goodies.
If you’re still wondering what this cujojs thing is all about, be sure to check out Brian Cavalier and John Hann’s “IOC + JavaScript” talk from SpringOne 2012.
comments powered by Disqus
translate:
翻译:
我们很高兴地宣布发布when.js 1.8.0。
js是cujojs的轻量级Promises/A和When()实现,派生自wire.js的异步核心,cujojs的IOC容器。它还提供了一些其他有用的与承诺相关的概念,例如连接多个承诺、映射和减少承诺集合以及定时承诺。
除此之外,此版本还包括一组广泛的适配器,用于处理现有的基于回调的api,包括节点样式的异步api,允许您将它们有效地转换为可感知承诺的函数。此外,这个版本中的大多数新功能都是社区贡献,这是非常棒的。继续!
一些特别的亮点包括:
用于提示现有基于回调的代码的适配器。
生成和处理无界/无限列表的机制
基于承诺的定期轮询实用程序。
查看变更日志以获取更多信息,并直接链接到所有新商品的文档。
如果你还想知道cujojs到底是怎么回事,一定要看看Brian Cavalier和John Hann在SpringOne 2012的“IOC+JavaScript”演讲。
由DISPS提供的评论