1
0
Fork 0

Make AsyncExecutor Send+Sync

Otherwise actually using this will be a bit difficult.
This commit is contained in:
Robbert van der Helm 2022-10-22 15:10:34 +02:00
parent c980576102
commit 63db56fa68

View file

@ -84,7 +84,7 @@ pub trait GuiContext: Send + Sync + 'static {
// lot of structs, and may even be incompatible with the way certain GUI libraries work.
#[derive(Clone)]
pub struct AsyncExecutor<P: Plugin> {
pub(crate) inner: Arc<dyn Fn(P::BackgroundTask)>,
pub(crate) inner: Arc<dyn Fn(P::BackgroundTask) + Send + Sync>,
}
/// A convenience helper for setting parameter values. Any changes made here will be broadcasted to