3 ms·
According to the documentation[0], enabling the "sync" feature should make the Engine Send+Sync. From a quick look at the source, it looks like it switches bet
by Measter 3y ago
According to the documentation[0], enabling the "sync" feature should make the Engine Send+Sync.
From a quick look at the source, it looks like it switches between using Rc/RefCells and Arc/RwLock.
[0] https://docs.rs/rhai/1.16.2/rhai/#enable-special-functionalities https://docs.rs/rhai/1.16.2/rhai/#enable-special-functionali...