diff --git a/src/context/gui.rs b/src/context/gui.rs index c1491646..173f9b05 100644 --- a/src/context/gui.rs +++ b/src/context/gui.rs @@ -106,9 +106,9 @@ pub struct ParamSetter<'a> { } impl AsyncExecutor

{ - /// Run a task from a background thread. This allows you to defer expensive tasks for later - /// without blocking either the process function or the GUI thread. As long as creating the - /// `task` is realtime-safe, this operation is too. + /// Execute a task on a background thread using `[Plugin::task_executor]`. This allows you to + /// defer expensive tasks for later without blocking either the process function or the GUI + /// thread. As long as creating the `task` is realtime-safe, this operation is too. /// /// # Note /// @@ -119,7 +119,7 @@ impl AsyncExecutor

{ (self.execute_background)(task); } - /// Run a task from the plugin's GUI thread. + /// Execute a task on a background thread using `[Plugin::task_executor]`. /// /// # Note /// diff --git a/src/context/process.rs b/src/context/process.rs index 7314f4ee..a0fa21fe 100644 --- a/src/context/process.rs +++ b/src/context/process.rs @@ -17,9 +17,9 @@ pub trait ProcessContext { /// Get the current plugin API. fn plugin_api(&self) -> PluginApi; - /// Run a task from a background thread. This allows you to defer expensive tasks for later - /// without blocking either the process function or the GUI thread. As long as creating the - /// `task` is realtime-safe, this operation is too. + /// Execute a task on a background thread using `[Plugin::task_executor]`. This allows you to + /// defer expensive tasks for later without blocking either the process function or the GUI + /// thread. As long as creating the `task` is realtime-safe, this operation is too. /// /// # Note /// @@ -28,8 +28,8 @@ pub trait ProcessContext { /// your task executor. fn execute_background(&self, task: P::BackgroundTask); - /// Run a task from the plugin's GUI thread. As long as creating the `task` is realtime-safe, - /// this operation is too. + /// Execute a task on a background thread using `[Plugin::task_executor]`. As long as creating + /// the `task` is realtime-safe, this operation is too. /// /// # Note ///