sh0r.dev

닫기 검색결과 전체 보기
"2024/05/22" 검색결과 (2)
  • async/await 문법?? 먹는건가요?

    서론지난번에는 Callback hell을 해결하기 위해 Promise 문법을 알아보았다.하지만 Callback hell을 완벽하게 회피할 수 있는 방법은 아니다.그래서 async/await 문법이 ES7부터 나오게 되었다.ES7의 async/await에 대해 알아보자.본문import fs from 'fs'const openFile = (file: string) => new Promise((resolve, reject) => { fs.readFile(file, (err, data) => { if(err) reject(err); resolve(data); });});지난번 포스트의 openFile 함수다. 이걸 쓰기 위해openFile('location') .catch((err) => con..

    TypeScript
    2024. 5. 22. 15:12
  • Promise는 어떤 건가요?

    서론Promise는 JavaScript의 비동기 프로그래밍을 도와주는 라이브러리다.현재는 JavaScript V8엔진에 기본 탑재되어 있다. (즉 Node.js에서도 활용할 수 있다.)IE10 이전 버전에서는 작동하지 않는데 Babel과 Promise polyfill을 통해 비슷하게 작동하도록 만들 수 있다. 본론그렇다면 어떻게 Promise가 비동기 작동을 돕는걸까?간단한 Wait 함수를 살펴보자.const wait = (time: number): Promise => new Promise((resolve, reject) => { setTimeout(() => resolve(), time);});wait(4000).then(() => console.log("done"))이 코드를 실행한다면 4초 후 P..

    TypeScript
    2024. 5. 22. 14:31
이전페이지
더 보기
다음페이지
블로그 이미지

프로그래밍을 하며 생기는 에러나 트러블슈팅에 대한 내용들입니다.

by dalbodeule

공지사항

    최근...

  • 포스트
  • 댓글
  • 더 보기

태그

  • asyncio
  • nuxt recaptcha
  • cloudflare d1
  • oracle m1 mac
  • 무결성 검증
  • ios appattest
  • integrity
  • nuxtjs3
  • runtimeconfig
  • recaptcha 검증
  • slugrelatedgetorcreatefield
  • Attest
  • pydantic
  • nuxthub
  • python pydantic
  • cloudflare worker
  • long job
  • recaptcha token
  • play integrity service
  • 네이밍 컨벤션
  • nuxtjs
  • cloudflare turnstile
  • recaptcha
  • colima
  • SpringBoot
  • slugrelatedfield
  • nuxt3
  • FastAPI
  • drf
  • Python

글 보관함

«   2024/05   »
일 월 화 수 목 금 토
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

링크

카테고리

분류 전체보기 (18)
TypeScript (8)
Vuejs (5)
React (1)
Python (4)
Django (1)
FastAPI (2)
Java Kotlin (3)
Spring SpringBoot (3)
기타 기술스택 (3)
Docker (1)

카운터

Total
Today
Yesterday
  • 홈
  • 태그
  • 방명록
dalbodeule's Blog is powered by daumkakao
Skin info material T Mark 5+ by 뭐하라
favicon

sh0r.dev

프로그래밍을 하며 생기는 에러나 트러블슈팅에 대한 내용들입니다.

  • 홈
  • 태그
  • 방명록

관리자 메뉴

  • 관리자 모드
  • 글쓰기
  • 분류 전체보기 (18)
    • TypeScript (8)
      • Vuejs (5)
      • React (1)
    • Python (4)
      • Django (1)
      • FastAPI (2)
    • Java Kotlin (3)
      • Spring SpringBoot (3)
    • 기타 기술스택 (3)
      • Docker (1)

카테고리

PC화면 보기 티스토리 Daum

티스토리툴바