job_scheduler icon indicating copy to clipboard operation
job_scheduler copied to clipboard

fix `dyn std::ops::FnMut()` cannot be sent between threads safely #20

Open alopatindev opened this issue 4 years ago • 3 comments

alopatindev avatar Jun 02 '20 19:06 alopatindev

@lholden can we have this merged and published to crates.io please?

rakshith-ravi avatar Aug 11 '20 08:08 rakshith-ravi

Seconding that @alopatindev - awesome crate, but this PR would make it even more awesome, @lholden! :) Tested it and this fixes it in my case:

    thread::spawn(move || {
        loop {
            schedule.tick();
            thread::sleep(std::time::Duration::from_secs(60));
        }
    });

bellackn avatar May 20 '21 11:05 bellackn

This PR is implemented in https://crates.io/crates/job_scheduler_ng (with some minor changes).

BlackDex avatar Jan 11 '23 13:01 BlackDex