trusktr
2015-11-09
Will we be able to make methods on a class or object async? For example:
class Foo {
constructor() {...}
async someMethod() {
await someThing()
return await somethingElse()
}
}
(async () => {
let f = new Foo()
let result = await f.someMethod()
console.log(result)
})()