emscripten-core/emscripten

Documentation - API Reference - Fetch API - Synchronous Fetches seems out of date

開放

#15,016 建立於 2021年9月9日

 (1 則留言) (0 個反應) (0 位負責人)C++ (3,519 個分叉)batch import
docsgood first bughelp wanted

倉庫指標

星標
 (27,361 顆星)
PR 合併指標
 (平均合併 19天 10小時) (30 天內合併 147 個 PR)

描述

https://github.com/emscripten-core/emscripten/blob/main/site/source/docs/api_reference/fetch.rst#synchronous-fetches

It states: --proxy-to-worker + -s USE_PTHREADS=1: Synchronous Fetch operations are available both on the main thread and pthreads.

If you try to apply those flags with 2.0.26 you get: --proxy-to-worker is not supported with -s USE_PTHREADS>0! Use the option -s PROXY_TO_PTHREAD=1 if you want to run the main thread of a multithreaded application in a web worker.

貢獻者指南