|
@@ -159,7 +159,7 @@ actions: {
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
-Finally, if we make use of [async / await](https://tc39.github.io/ecmascript-asyncawait/), a JavaScript feature landing very soon, we can compose our actions like this:
|
|
|
|
|
|
+Finally, if we make use of [async / await](https://tc39.github.io/ecmascript-asyncawait/), we can compose our actions like this:
|
|
|
|
|
|
``` js
|
|
``` js
|
|
// assuming `getData()` and `getOtherData()` return Promises
|
|
// assuming `getData()` and `getOtherData()` return Promises
|