Using it would produce an async function like:
```javascript
async function requestInput(question) {
interface.question(question, function(input) {
async return input ;
});
}
```
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
I proposed an enhanced definition for `async return` and `async throw` to
address this issue
in https://github.com/tc39/ecmascript-asyncawait/issues/38 – it didn’t get
accepted, however it is implemented in rodent
(see https://github.com/MatAtBread/nodent#exiting-async-functions-from-callbacks)
- Re: New Promise Syntax Proposal Jonathan Barronville
- Re: New Promise Syntax Proposal Isiah Meadows
- Re: New Promise Syntax Proposal Jorge Téllez
- Re: New Promise Syntax Proposal T.J. Crowder
- Re: New Promise Syntax Proposal Jonathan Barronville
- Re: New Promise Syntax Proposal T.J. Crowder
- Re: New Promise Syntax Proposal Isiah Meadows
- Re: New Promise Syntax Proposal Oriol _
- Re: New Promise Syntax Proposal Michael Rosefield
- Re: New Promise Syntax Proposal T.J. Crowder
- Re: Re: New Promise Syntax Proposal Mat At Bread
- Re: New Promise Syntax Proposal Augusto Moura
- Re: New Promise Syntax Proposal Pranay Prakash

