This commit is contained in:
zino committed 2021-03-02 00:06:38 +01:00
1 parent 3a8aab0e9a
commit eeb745b013
3567 files changed
+1234741

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
function f (x) { return new Promise(resolve => {
process.nextTick(() => { resolve(x) }) }) }
async function add (x) {
return x + await f(20) + await f(30)
}
add(10).then(v => { console.log(v) })