Clarify task scheduling doc comments
This commit is contained in:
parent
0dd3bfe4e7
commit
3032300bcf
|
@ -106,9 +106,9 @@ pub struct ParamSetter<'a> {
|
|||
}
|
||||
|
||||
impl<P: Plugin> AsyncExecutor<P> {
|
||||
/// 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<P: Plugin> AsyncExecutor<P> {
|
|||
(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
|
||||
///
|
||||
|
|
|
@ -17,9 +17,9 @@ pub trait ProcessContext<P: Plugin> {
|
|||
/// 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<P: Plugin> {
|
|||
/// 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
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue