Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like you need to use conditional compilation to use Loom, which probably works okay for testing one library, but is pretty intrusive:

    #[cfg(loom)]
    pub(crate) use loom::sync::atomic::AtomicUsize;

    #[cfg(not(loom))]
    pub(crate) use std::sync::atomic::AtomicUsize;
I wonder if there are any languages that do a better job of letting you use your own scheduler?


in C# it's basically automatic https://github.com/microsoft/coyote/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: