summivox · GitHub

Closed

Closed

Conversation

see http://wiki.ecmascript.org/doku.php?id=strawman:async_functions
async function: `->>`, `~>>`, `-->>`, `~~>>`, `async (arglist) ->...`, `async function name (arglist)`
await: `await` => `await`; `await all` => `await*` (proposed to translate to `Promise.all`, not final)
backcall does NOT work, but this should be fine because they were invented to create the illusion of async function anyway
… being generated inside async functions

This was referenced

Sep 20, 2017

Closed

Closed

… above

rhendric

return 3
if last.0 is 'yield' and last.1 is 'await'
last.1 += 'all'
return 3
| 'yield' => ''
| 'yieldfrom' => 'from'
| 'await' => 'await'
| _ => ''
x = ->>
3

y <- x!then

y <- x!then

eq y, 16

rhendric added a commit that referenced this pull request

Sep 21, 2017

Closed

Closed

Labels

None yet

Read the original on github.com ↗