일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- react-sortable-hoc
- zerocho
- gitignore
- signIn
- cognito
- API Gateway
- 프로그래머스
- react-xml-parser
- node
- react-admin
- react DOM
- domtoimage
- electron
- react
- JavaScript
- yml
- axios
- xlsx
- react-hook-form
- icrawler
- AWS
- window.postMessage
- Route53
- dynamodb
- readableStream
- electron-builder
- jimp
- 가상 DOM
- timeinput
- TypeScript
Archives
- Today
- Total
목록Concurrency (1)
꾸준히 공부하는 개발자
[Node.js] bluebird.js Promise (concurrency)
import Bluebird from 'bluebird' const handlerFile = await Bluebird.map(data, item => new Bluebird(async (resolve, reject) => { setTimeout(async () => { try { if (item.mainImages) await uploadToS3(item, 'mainImages', 'images', null, 'products') setLoadingCount(prevCount => prevCount + 1) } catch (e) { setLoadingCount(prevCount => prevCount + 1) item.mainImages = [] console.log(e) } try { if (item..
Node.js
2019. 12. 18. 21:23