# WebAssembly JavaScript Promise Integration(JSPI) API 소개

> Clean Markdown view of GeekNews topic #8317. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8317](https://news.hada.io/topic?id=8317)
- GeekNews Markdown: [https://news.hada.io/topic/8317.md](https://news.hada.io/topic/8317.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-01-25T10:11:59+09:00
- Updated: 2023-01-25T10:11:59+09:00
- Original source: [v8.dev](https://v8.dev/blog/jspi)
- Points: 10
- Comments: 0

## Topic Body

- JSPI는 동기식 애플리케이션과 비동기식 웹 API간의 갭을 줄여주는 브릿지 API   
- WebAssembly 어플리케이션이 동기 API를 호출하면 잠깐 중단했다가 비동기 I/O가 끝나면 재개하는 방식으로 동작  
  - 예를 들어, Promise를 리턴하는 fetch API는 WebAssembly 어플리케이션에서 직접 조작이 불가능한데,  JSPI는 Promise를 인터셉트하고 WebAssembly 어플리케이션 메인 로직을 잠시 중단했다가 응답이 오면 재개   
- 아직은 실험단계이므로 프로덕션에는 사용하지 말 것. 하지만 언젠가는 표준 기능으로 추가 될 것임

## Comments



_No public comments on this page._
