Set a function on master and send it to all workers

I would like to construct an interpolation function from a very large dataset in a serialized way(master worker) and then send it to all workers for parallel computing.

I tried sendto(workers(),interp_function=interp_function) from ParallelDataTransfer.jl, but I got issues similar to

Is there another function I can use?

Thank you for your help,

Here’s an old but related question on StackOverflow:

Maybe there’s a more recent answer, along using Threads ( that share their memory