Is it or will it be possible to have an ES6 class getter return a value from an ES2017 await / async function.
class Foo { async get bar() { var
You can get the value by await on the caller side.
await
class Foo { get bar() { return someAsyncOperation(); } } async function test(){ let foo = new Foo, val = await foo.bar; val.should.equal('baz'); }