class Test {
caller() {
console.log(this.asyncMethod());
console.log(`hello from caller`);
}
async asyncMethod() {
}
}
async asyncMethod() {
return await fetch(...).then(() => console.log(`hello from asyncMethod`))
}
asyncMethod() {
setTimeout(() => {
console.log(`hello from asyncMethod`)
})
}