expose promise polyfill in a way that won't need code migration later

This commit is contained in:
Leo Horie 2016-11-16 21:15:23 -05:00
parent 62724a1143
commit 439cf95673
7 changed files with 60 additions and 95 deletions

View file

@ -18,4 +18,5 @@
- [m.redraw](redraw.md)
- [m.version](version.md)
- [stream](stream.md)
- [Promise](promise.md)
- [Stream](stream.md)

View file

@ -441,7 +441,7 @@ setTimeout(function() {
}, 1000)
```
The equivalent of `m.sync` is now `m.Promise.all`
The equivalent of `m.sync` is now `Promise.all`
### `v0.2.x`
@ -458,7 +458,7 @@ m.sync([
### `v1.x`
```javascript
m.Promise.all([
Promise.all([
m.request({ method: 'GET', url: 'https://api.github.com/users/lhorie' }),
m.request({ method: 'GET', url: 'https://api.github.com/users/isiahmeadows' }),
])