-
It would be nice if there was a `grpc-tools` and/or `grpc_node_plugin` option that would generate client and server code that follows the ES6 Promise and ES7 async/await model.
For example, instead…
-
[V8 is getting native async/await support soon](http://v8project.blogspot.com/2016/04/es6-es7-and-beyond.html). Once TypeScript has an ES7 target then debugging the generated async code will be much e…
-
Some support for A+ Promises would be nice.
Something like :
```javascript
gg.statistics
.overall()
.then(function(data) {
// ...
})
.catch(function(err) {
// ...
});
…
-
报错:TypeError: Cannot assign to read only property 'exports' of object '#'
我在一个文件中使用ES7语法如下:
async function testAsync(){
var a = 1;
await a+2;
return a
}
module.exports = {
…
-
https://tswblog.com/article/js/nodejs-http-async/
前言在有些场景中, 并不需要处理复杂的业务逻辑, 可能只需要一个简单的http接口, 用来执行一些简单的功能; 此时可尝试下nodejs的原生http来搭建server. 运行这样一个http server所需要的仅仅是一个nodejs的环境. 然后借助于灵活的js语言和对JSON的原生支持.…
siwet updated
6 years ago
-
Async/await now has a [semi-official posted draft spec](http://tc39.github.io/ecmascript-asyncawait/#UnaryExpression) and they've decided to make `await foo` a unary expression.
Any opinion on how to…
-
In ch-6 ,You explained 4 different paradigm for dealing with MongoDb.
I think Es7 async await pattern is the most simple approach.
Babel also provides Es2017 preset.
I think you should include thi…
-
hello,use this project in ES7,but not support decorator?
```
class OrderController {
/**
* @type methods
*/
@route()
async submitOrder(ctx) {
return await OrderService.submitOr…
-
What is really nice that you can wrap entire modules with it and you can use ES7 async functions. e.g.
```js
const fs = wrap(require('fs'));
(async function (){
try {
var content = await …
ghost updated
7 years ago
-
Just like their names, these functions should return a Promise (maybe when no callback function specified)
- putAsync
- takeAsync
Use with es7 async/await function
```
await putAsync(ch, 42);…
tmtxt updated
7 years ago