-
To ensure that all async user-provided functions can use either a callback or a promise, a utility method should be created that normalizes everything into returning a promise. It'll simplify the code…
-
I haven't found any way to not make js3-mode unhappy about certain features of ES6 code (namely default parameters). Is there an option I'm missing?
-
## A module with async proviton
Current:
``` js
import asyncProvide from 'ym:provide';
import loader from 'bem:loader__js';
import cfg from 'bem:jquery__config';
doProvide = preserveGlobal => {
…
-
# 续
之前基于co和ES6的generator确实使异步操作写得更好了#49 ,但是,依然不够优雅。这次使用ES7的async来解决这个问题。通过babel,这个语法已经可以应用在生产环境当中了(已经有人这么干了)。
# demo
```
function sleep(timeout) {
return new Promise((resolve, reject) => {
s…
-
Would be cool if it could be used with the [stack-trace](https://github.com/felixge/node-stack-trace) module to filter v8 `CallSite` objects.
## Use case
I want to get the file name of the caller of …
-
-
Hello,
I would like to thank you for this great library.
I am going ES7 async / await in a project for a week now. I had to put these $apply's nearly everywhere. I have crazy questions in my mind ab…
-
JSHint should expose experimental/unstable functionality via a configuration that makes that status obvious to consumers. Here's what I'm proposing:
`.jshintrc` files:
``` json
{
"experimental": {…
-
-