Update task.md

Made it clear what the question was asking from the user.
This commit is contained in:
Herrera-pgoat 2020-10-22 16:05:32 -05:00 committed by GitHub
parent 2d5be7b730
commit 58ee49a958
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
# Call async from non-async # Call async from non-async
We have a "regular" function. How to call `async` from it and use its result? We have a "regular" function called f. How can you call the `async` function wait() and use its result inside of f?
```js ```js
async function wait() { async function wait() {
@ -11,7 +11,7 @@ async function wait() {
} }
function f() { function f() {
// ...what to write here? // ...what should you write here?
// we need to call async wait() and wait to get 10 // we need to call async wait() and wait to get 10
// remember, we can't use "await" // remember, we can't use "await"
} }