Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 2017

Javascript Await On Multiple Chained Async Functions

Say I have the following: const a = new A(); await a.getB().action(); A.prototype.getB() is async … Read more Javascript Await On Multiple Chained Async Functions

Is It Possible To Use Await Without Async In Js

Await is a amazing feature in es7. However,everytime I use await I found that I have to define a as… Read more Is It Possible To Use Await Without Async In Js

How Is Async/await Working In Serial And Parallel?

I have two async functions. Both of them are waiting for two 3 seconds function calls. But the seco… Read more How Is Async/await Working In Serial And Parallel?

Returning An Awaited Value Returns A Promise? (es7 Async/await)

const ret = () => new Promise(resolve => setTimeout( () => resolve('somestring'), … Read more Returning An Awaited Value Returns A Promise? (es7 Async/await)

React-native Async Function Returns Promise But Not My Json Data?

I'm learning react-native, and I'm running into an issue. Why does getting data on return f… Read more React-native Async Function Returns Promise But Not My Json Data?