Sign in
apache
/
cordova-js
/
refs/heads/cb-4.2.3-node-modules-for-coho-only
/
.
/
node_modules
/
browserify
/
test
/
async
/
src.js
blob: 7a50fbcd5b863714f1096414ddf1ddfb9f91f461 [
file
] [
log
] [
blame
]
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
)
})