We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c946a commit a23bed7Copy full SHA for a23bed7
1 file changed
1-js/11-async/08-async-await/03-async-from-regular/task.md
@@ -1,11 +1,7 @@
1
2
# async가 아닌 함수에서 async 함수 호출하기
3
4
-<<<<<<< HEAD
5
'일반' 함수가 하나 있는데, 여기서 `async` 함수를 어떻게 하면 호출하고, 그 결과를 사용할 수 있을까요?
6
-=======
7
-We have a "regular" function called `f`. How can you call the `async` function `wait()` and use its result inside of `f`?
8
->>>>>>> upstream/master
9
10
```js
11
async function wait() {
@@ -15,15 +11,9 @@ async function wait() {
15
}
16
12
17
13
function f() {
18
19
14
// ...코드...
20
// async wait()를 호출하고 그 결과인 10을 얻을 때까지 기다리려면 어떻게 해야 할까요?
21
// f는 일반 함수이기 때문에 여기선 'await'를 사용할 수 없다는 점에 주의하세요!
22
23
- // ...what should you write here?
24
- // we need to call async wait() and wait to get 10
25
- // remember, we can't use "await"
26
27
28
```
29
0 commit comments