Replace AsyncExecutor with simple closure

This makes everything much simpler. The task type is now defined
directly on `Plugin`.
This commit is contained in:
Robbert van der Helm
2022-10-22 01:59:29 +02:00
parent 84f834abb6
commit 5ea2377c18
28 changed files with 85 additions and 125 deletions

View File

@@ -183,8 +183,7 @@ impl Plugin for Crossover {
aux_outputs: Some(&["Band 1", "Band 2", "Band 3", "Band 4", "Band 5"]),
};
type AsyncExecutor = ();
fn async_executor(&self) -> Self::AsyncExecutor {}
type BackgroundTask = ();
fn params(&self) -> Arc<dyn Params> {
self.params.clone()