일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Route53
- jimp
- JavaScript
- AWS
- react-sortable-hoc
- react-hook-form
- electron-builder
- icrawler
- node
- xlsx
- react DOM
- gitignore
- timeinput
- TypeScript
- readableStream
- API Gateway
- react
- 가상 DOM
- domtoimage
- cognito
- dynamodb
- window.postMessage
- electron
- zerocho
- react-xml-parser
- react-admin
- 프로그래머스
- yml
- axios
- signIn
Archives
- Today
- Total
목록Promise (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