Due to rust housekeeping stuff esp involving rayon, it would be best if fork_map spawned a new thread and did all the forkery in there, so as little state is preserved from the parent process as possible. It will mean that the closure will need to be Sync+Send, but like, it's already unsafe so you have signed up for this anyway
Due to rust housekeeping stuff esp involving rayon, it would be best if fork_map spawned a new thread and did all the forkery in there, so as little state is preserved from the parent process as possible. It will mean that the closure will need to be Sync+Send, but like, it's already unsafe so you have signed up for this anyway