mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Require AsyncExecutor tasks to be Send
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
pub trait AsyncExecutor: Send + Sync {
|
||||
/// The type of task this executor can execute. This is usually an enum type. The task type
|
||||
/// should not contain any heap allocated data like [`Vec`]s and [`Box`]es.
|
||||
type Task;
|
||||
type Task: Send;
|
||||
|
||||
/// Run `task` on the current thread. This is usually called from the operating system's main
|
||||
/// thread or a similar thread.
|
||||
|
||||
Reference in New Issue
Block a user