Type Definition nih_plug::plugin::TaskExecutor
source · pub type TaskExecutor<P> = Box<dyn Fn(<P as Plugin>::BackgroundTask) + Send>;
Expand description
A function that can execute a plugin’s BackgroundTask
s. A plugin can
dispatch these tasks from the initialize()
function, the process()
function, or the GUI, so
they can be deferred for later to avoid blocking realtime contexts.