fix: automatic rebuilds, num_threads for localpools (#4583)
* fix: automatic rebuilds * Fix concurrency for locapoolhandle
This commit is contained in:
1 parent
74163984be
commit
23908b9d49
5 files changed
+27
-8
No files matched your search
@@ -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),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user