fix: automatic rebuilds, num_threads for localpools (#4583)

* fix: automatic rebuilds

* Fix concurrency for locapoolhandle
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-08-19 17:50:16 -07:00
1 parent 74163984be
commit 23908b9d49
5 files changed
+27 -8

No files matched your search

+5 -1
View File
@@ -31,7 +31,11 @@ impl LiveViewPool {
dioxus_html::set_event_converter(Box::new(SerializedHtmlEventConverter));
LiveViewPool {
pool: LocalPoolHandle::new(16),
pool: LocalPoolHandle::new(
std::thread::available_parallelism()
.map(usize::from)
.unwrap_or(1),
),
}
}