MLJBase.jl icon indicating copy to clipboard operation
MLJBase.jl copied to clipboard

Ensure packages implementing Code are threadsafe

Open OkonSamuel opened this issue 4 years ago • 2 comments

Apart from the fact that packages need to implement MLJ's API to be used in MLJ. They also need to ensure that that their code is thread safe otherwise things break.

OkonSamuel avatar May 10 '20 20:05 OkonSamuel

I think some developers (myself included) will not too familiar with what is and what is not safe. Is there a list somewhere? (I know only this discussion)

ablaom avatar May 11 '20 00:05 ablaom

The updated docs here can supplement that. Basically the key point is that should avoid functions with side effects (i.e mutates the global state)

OkonSamuel avatar May 11 '20 00:05 OkonSamuel