forked from 1b-agent/opencadstudio-upstream
fix: preserve web builds and leader selection order
This commit is contained in:
1 parent
6d5763bb70
commit
cba2680be0
5 files changed
+38
-68
No files matched your search
@@ -75,3 +75,11 @@ pub mod prelude {
|
||||
|
||||
impl<I: Iterator> IterParExt for I {}
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub use rayon::join;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn join<A, B>(a: impl FnOnce() -> A, b: impl FnOnce() -> B) -> (A, B) {
|
||||
(a(), b())
|
||||
}
|
||||
Reference in new issue
Block a user