bytecodealliance / bytecodealliance/ComponentizeJS
Export synchronous function with a deferred fetch
- Ngôn ngữ chính
- Rust
- Star
- 391
- Fork
- 53
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Hi I have put together [this repo](https://github.com/rhodey/componentizejs-debug) with steps to reproduce.
ComponentizeJS is failing when:
1. exports a synchronous function.
2. the synchronous function starts deferred work (fetch).
Two branches have been prepared:
1. [main](https://github.com/rhodey/componentizejs-debug/tree/main) await is used and tests pass.
2. [poll](https://github.com/rhodey/componentizejs-debug/tree/poll) a polling mechanism is used and tests hang.
Repo includes all dependencies at latest versions at time of writing:
+ componentize-js 0.19.3
+ rust 1.93.0
+ wit-bindgen 0.53.1
+ wit-bindgen-rt 0.44.0
+ wstd 0.6.5
Repo README is very detailed
I cannot use await because I have read it is implemented as blocking the caller and my caller is an http server
Please do ask any and all questions and thanks for ComponentizeJS
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với README chi tiết và repository tái hiện được liên kết trong issue, sau đó so sánh các branch main và poll. Chạy branch poll để xác nhận hành vi bị treo và đối chiếu với branch await. Hoàn thành khi export đồng bộ có thể bắt đầu công việc fetch trì hoãn mà bản tái hiện polling không bị treo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, rust, wasm
- Lĩnh vực
- backend, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100