-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
A-Pkg ManagerArea: Package ManagerArea: Package ManagerA-WasmArea WASMArea WASMp0Hight PriorityHight Priority
Description
The tokio_fs_ext::offload::Server run in the schedule thread, a long time blocking is not desired in the thread.
utoo/crates/utoo-wasm/src/project.rs
Line 55 in 8ecba78
| pub fn gzip(&self, files: JsValue) -> Result<js_sys::Uint8Array, JsError> { |
utoo/crates/utoo-wasm/src/project.rs
Line 48 in 8ecba78
| pub fn sig_md5(&self, content: &[u8]) -> String { |
They should be wrapped with tokio::task::spawn_blocking, see usage example:
https://github.com/utooland/tokio-on-browser/blob/f5c7d952d372144afb9ed4ac7b916f35bfc7b2e8/src/lib.rs#L127
Metadata
Metadata
Assignees
Labels
A-Pkg ManagerArea: Package ManagerArea: Package ManagerA-WasmArea WASMArea WASMp0Hight PriorityHight Priority