|
The wiki page says: // these two lines are equivalent
await a, b, c, d = moo(1, 2, 3);
moo(1, 2, 3, function(a, b, c, d) {} );
So I don't see why not... // ...these two lines would be also equivalent
await error, foo = bar(1, 2, 3);
bar(1, 2, 3, function(error, foo) {} );
|
Here's a concrete example. Normally in Node you do something like this:
The await version would look like this: Ideally it would look like this: