fix(http): use tokio oneshot channel for detecting abort (#1395)

* fix(http): properly handle aborting

closes #1376

* abort early in JS

* avoid using unnecessary mutexes

* fix lint

* update bundle

* simplify
This commit is contained in:
Amr Bashir
2024-07-08 20:31:29 +03:00
committed by GitHub
parent b07c092cd2
commit ac9a25cc12
6 changed files with 109 additions and 34 deletions
+1
View File
@@ -26,6 +26,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1", features = [ "sync", "macros" ] }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-beta.10" }
urlpattern = "0.2"
regex = "1"