Skip to content

Commit a23bed7

Browse files
author
hyemi-lee-nuvilab
committed
docs: 03-async-from-regular 충돌 해결
1 parent a9c946a commit a23bed7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • 1-js/11-async/08-async-await/03-async-from-regular

1-js/11-async/08-async-await/03-async-from-regular/task.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
# async가 아닌 함수에서 async 함수 호출하기
33

4-
<<<<<<< HEAD
54
'일반' 함수가 하나 있는데, 여기서 `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
95

106
```js
117
async function wait() {
@@ -15,15 +11,9 @@ async function wait() {
1511
}
1612

1713
function f() {
18-
<<<<<<< HEAD
1914
// ...코드...
2015
// async wait()를 호출하고 그 결과인 10을 얻을 때까지 기다리려면 어떻게 해야 할까요?
2116
// 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-
>>>>>>> upstream/master
2717
}
2818
```
2919

0 commit comments

Comments
 (0)