Checkpoint

This commit is contained in:
Nathan Sobo 2023-09-20 12:03:37 -06:00
parent 83dae46ec6
commit 5b0e333967
16 changed files with 794 additions and 582 deletions

View file

@ -35,10 +35,10 @@ pub use mac::*;
#[cfg(any(test, feature = "test"))]
pub use test::*;
// #[cfg(target_os = "macos")]
// pub fn current() -> Rc<dyn Platform> {
// MacPlatform
// }
#[cfg(target_os = "macos")]
pub(crate) fn current_platform() -> Rc<dyn Platform> {
Rc::new(MacPlatform::new())
}
pub trait Platform {
fn executor(&self) -> Rc<ForegroundExecutor>;