node-promise
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/kriszyp/node-promise
- 软件文档: https://github.com/kriszyp/node-promise
软件介绍
node-promise 在 Node.js 平台上提供了完整的 Promises 的实现。
The node-promise module features a promise implementation with:
- Chainable promises
- Promises throw errors if an error handler is not provided
- CommonJS promise proposal [1] compliant
- Immutable once fulfilled to reduce possible side-effects
- Promises can be used securely (as separate resolver/promise pairs in ocap situations)
- Backwards compatibility where possible (addCallback, addErrback, emitSuccess, and emitError should still behave as expected)
Utility functions, including:
- when() - Normalization of sync (normal values) and async (promises)
- all() - Create a promise that accumulate multiple concurrent promises
- first() - Find the first promise to be fulfilled in a group of promises
- seq() - Sequentially execute a set of promise returning functions
- delay() - Returns a promise that is fulfilled after a given amount of time
- execute() - Executes a function that takes a callback and returns a promise (thank you Benjamin Thomas for providing this)
示例代码:
var Promise = require("promise").Promise;
var promise = new Promise();
asyncOperation(function(){
Promise.resolve("succesful result");
});
promise -> given to the consumer
ARM嵌入式系统开发
斯洛斯 / 北京航大 / 2005-5 / 75.00元
《ARM嵌入式系统开发:软件设计与优化》从软件设计的角度,全面、系统地介绍了ARM处理器的基本体系结构和软件设计与优化方法。内容包括:ARM处理器基础;ARM/Thumb指令集;C语言与汇编语言程序的设计与优化;基本运算、操作的优化;基于ARM的DSP;异常与中断处理;固件与嵌入式OS;cache与存储器管理;ARMv6体系结构的特点等。全书内容完整,针对各种不同的ARM内核系统结构都有详尽论述,......一起来看看 《ARM嵌入式系统开发》 这本书的介绍吧!
