best way to use async in constructor code example
Example: async constructor javascript
function asyncRequest(id){
return new Promise(/*.....*/);
}
class MyClass {
constructor(async) {
(async function() {
this.city = await asyncRequest(async);
})();
}
}