Package for Rust-like borrow checker in Julia?

Does anyone know if there a mechanism to override values getting passed to Threads.@spawn / Threads.@threads? Maybe I just have to write a BoundaryChecker.Threads.@spawn that parses and wraps variables in @take? Though it seems a bit fragile this way.

Edit: will just manually check .threadid == Threads.threadid() each time anything is accessed.

1 Like