Node.js Manual & Documentation
开始在指定的端口 port 和主机名 host 上接受连接。如果没有设置 host 参数, 服务器将接受到达本机所有 IPv4 地址(INADDR_ANY)的连接。 This function is asynchronous. The last parameter callback will be called when the server has been bound. 此函数是异步的。最后一个参数 callback Server。 server.close() Stops the server from accepting new connections. This function is asynchronous, the server is finally closed when the server emits a 'close' event. 关闭服务器,停止接受新的连接请求。此函数是异步的,当服务器触发一个 require('fs'). All the methods have asynchronous and synchronous forms. 文件的 I/O 是由标准 POSIX 函数封装而成。需要使用 require('fs')访问这个 模块。所有的方法都提供了异步和同步两种方式。 The asynchronous form always take a completion callback0 码力 | 153 页 | 1.21 MB | 1 年前3Rust 异步并发框架在移动端的应用 - 陈明煜
chenmingyu4@huawei.com 华为 公共开发部 嵌入式软件能力中心 Applications of Rust Runtime in Mobile Overview of asynchronous Rust #1 Rust 异步简介 Ylong async runtime #3 Ylong Runtime 并发框架 目录 Table of Contents #2 社区并发框架介绍以及与移动端的不适配性 Introduction to third party Runtime crates and their incompatibility with mobile environment Rust 异步机制 Asynchronous Rust 异步并发框架是许多大型应用、系统具备的底层能力。 区别于多线程编程模型,它带来以下优势: 任务调度颗粒度更小,充分利用线程资源 更可控的线程数 单个任务资源占用:几十 await Waker asyn c Future Waker poll Syntax sugar wake await Rust 异步机制 Asynchronous Rust Rust 异步机制 Asynchronous Rust Waker Task Future task Queue wake Worker Future.poll() Reactor fd0 码力 | 25 页 | 1.64 MB | 1 年前3ExtJS和AngularJS比较
break the complexities of asynchronous programming, separate out the synchronous and asynchronous world, remove the tight cou pling between the two They are for asynchronous programming what try, catch 可以通过$watch 函数手动触发观测者。一个观测者有 两个函数:一个观察函数和一个观察表达式。观察函数是用于数据改变时被触发的监听函数,观察表达式是确定那些数据需要被观察(作用域)。 Asynchronous nature of dirty cycle: 通过赋值,比如 $scope.username="angular" ,并不会马上触发$watch,而是在 $digest 阶段才会触发。这0 码力 | 6 页 | 244.12 KB | 1 年前3Scaling with PostgreSQL 9.6 and Postgres-XL
Ability to write at multiple locations. Uses asynchronous logical replication • Caveats: – 1.0 Release – DDL requires global write lock – Asynchronous must be acceptable – Conflict resolution after rates on replicas? Consider using pglogical and having replicas contain a subset of the data – Asynchronous – Applications need data location awareness Postgres Conference China 2016 中国用户大会 OLTP – Write-Heavy0 码力 | 87 页 | 1.16 MB | 1 年前3CurveFs 用户权限系统调研
only two types of requests fall into this category: * * 1. Read-ahead requests * 2. Asynchronous direct I/O requests * * Read-ahead requests are generated (if max_readahead is * non-zero) * when it anticipates that userspace will soon read more * data.© XXX Page 12 of 33 * * Asynchronous direct I/O requests are generated if * FUSE_CAP_ASYNC_DIO is enabled and userspace submits a synchronous and * buffered) userspace read/write requests (limited to one per * thread), asynchronous read requests (Linux's io_submit(2) * call actually blocks, so these are also limited to one0 码力 | 33 页 | 732.13 KB | 5 月前3高可用与一致性:构建强一致性分布式数据库 TiDB-沈泰宁
to test? What is TiDB? Single Point Single Point of Failure Asynchronous Replication A = 1 B = 2 A = 1 Master Slave Asynchronous Replication A = 1 B = 2 A = 1 B = ? Master Slave Synchronous0 码力 | 45 页 | 4.63 MB | 1 年前3Typescript, Angular, 和移动端的跨平台开发
Angular Change Detection ● NgZone - Creates an execution context where Angular monkey patches the asynchronous calls and emit onTurnDone event. ● ApplicationRef - Triggerred by onTurnDone and checks the someone subscribes to it. ● Angular Uses RxJs Observable for subscription based processing of asynchronous operations. Observable let observable = new Observable(observer => { const operation = fn((value0 码力 | 60 页 | 1.05 MB | 1 年前3electron中文教程
require('electron').ipcMain; 3. ipcMain.on('asynchronous-message', function(event, arg) { 4. console.log(arg); // prints "ping" 5. event.sender.send('asynchronous-reply', 'pong'); 6. }); 7. 8. ipcMain prints "pong" 4. 5. ipcRenderer.on('asynchronous-reply', function(event, arg) { 6. console.log(arg); // prints "pong" 7. }); 8. ipcRenderer.send('asynchronous-message', 'ping'); ipcMain 模块有如下监听事件方法:0 码力 | 203 页 | 2.72 MB | 1 年前3openEuler 21.03 技术白皮书
optimization: The optimized fairness of Completely Fair Scheduler (CFS) tasks and the NUMA-aware asynchronous call mechanism combine to bring a significant improvement in NVDIMM initialization. Optimized the performance of the double data rate (DDR) persistent memory. 12. io_uring: This is a new asynchronous I/O framework that supports the polling mode. In polling mode, io_uring brings about a substantial0 码力 | 21 页 | 948.66 KB | 1 年前3JavaScript Promise迷你书(中文版)
ocha理由中的支持"Promises测试"究 竟是一种什么机制。 Mocha对Promise的支持 在这里,我们将会学习什么是Mocha支持的“对Promise测试”。 官方网站 Asynchronous code37 也记载了关于Promise测试的概要。 Alternately, instead of using the done() callback, you can return 该容易理解了。 mocha-promise-test.js var assert = require('power-assert'); 37 http://mochajs.org/#asynchronous-code JavaScript Promise 迷你书(中文版) 48 describe('Promise Test', function () { it('should return .9/dojo/Deferred.html 68 https://developer.mozilla.org/ja/docs/XMLHttpRequest/Synchronous_and_Asynchronous_Requests JavaScript Promise 迷你书(中文版) 77 delayPromise(ms) 返回一个在经过了参数指定的毫秒数后进行onFulfilled操作的promise0 码力 | 112 页 | 1010.02 KB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9