Set a function on master and send it to all workers

Hello,
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 https://github.com/ChrisRackauckas/ParallelDataTransfer.jl/issues/16.

Is there another function I can use?

Thank you for your help,

Here’s an old but related question on StackOverflow: for loop - Julia parallel programming - Making existing function available to all workers - Stack Overflow

Maybe there’s a more recent answer, along using Threads (Parallel Computing · The Julia Language) that share their memory