From 6f265c3ec59f5e3c8f2c2325f9028f50cd6dd37a Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Sun, 25 May 2025 08:07:30 +0200 Subject: [PATCH] add docs --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1f49a07..c2375f6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -330,14 +330,14 @@ pub trait Runtime: Resource + Default { /// Can be used to directly interact with an interpreter to use interfaces /// that bevy_scriptum does not provided adapters for. /// May not be implemented for runtimes which require the closure to pass - /// thread boundary. + /// thread boundary - use `with_engine_send_mut` then. fn with_engine_mut(&mut self, f: impl FnOnce(&mut Self::RawEngine) -> T) -> T; /// Provides immutable reference to raw scripting engine instance. /// Can be used to directly interact with an interpreter to use interfaces /// that bevy_scriptum does not provided adapters for. /// May not be implemented for runtimes which require the closure to pass - /// thread boundary. + /// thread boundary - use `with_engine_send` then. fn with_engine(&self, f: impl FnOnce(&Self::RawEngine) -> T) -> T; fn eval(