Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |
Tags
- Each child in a list should have a unique "key" prop.
- npm package
- Recoil
- nextjs
- github lfs
- custom printing
- silent printing
- rolldown
- 이미지 데이터 타입
- react-native
- vercel git lfs
- camera permission
- react-native-dotenv
- github pdf
- animation
- Git
- camera access
- html
- 티스토리 성능
- Failed to compiled
- augmentedDevice
- dvh
- adb pair
- ffi-napi
- ELECTRON
- electron-packager
- github 100mb
- Can't resolve
- device in use
- adb connect
Archives
- Today
- Total
목록2023/08/13 (1)
Bleeding edge
순차적으로 비동기 실행시키기
1. 사용할 배열을 선언한다. const promiseStringArray = ["string1", "string2", "string3"]; 2. 순차적으로 실행하기 위해서 reduce를 사용한다. 시작(initial Value)은 Promise.resolve()으로 시작한다 promiseStringArray.reduce(async(prev, current)=>{ }, Promise.resolve()); 3. accumulator에 체이닝 준비한다. const previousPromise = await prev.then(); 4. 비동기를 실행한다.(예시함수 이름을 func로 사용하였다) await func(current); 5. Promise로 체이닝을 건다. return Promise.resolve(..
Javascript
2023. 8. 13. 02:21