Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: asyncawait
node v6.17.1
endpoint
share
tweet
var async = require('asyncawait/async'); var await = require('asyncawait/await'); var printStuff = async (function () { var files = await (console.log("x")); var files2 = await (console.log("y")); return [files, files2]; }); printStuff();
Created from: https://npm.runkit.com/asyncawait
Loading…
no comments
sign in
to comment