Allow platform references to be sent to background threads
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
ebbe517bfa
commit
6daddf5146
@@ -48,7 +48,7 @@ pub(crate) trait MainThreadPlatform {
|
||||
);
|
||||
}
|
||||
|
||||
pub trait Platform {
|
||||
pub trait Platform: Send + Sync {
|
||||
fn dispatcher(&self) -> Arc<dyn Dispatcher>;
|
||||
fn fonts(&self) -> Arc<dyn FontSystem>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user