DEV Community

Discussion on: Closure? I Hardly Know Her!

Collapse
 
rwhitt2049 profile image
Ry Whittington

I love closures and find myself reaching for them often. The only time I've noticed that they don't work for me is when I'm multiprocessing as they won't pickle. In those situations, I have to fall back to the class approach. Maybe I just haven't found the right magic to make them work in process pools, so hopefully someone can point me in the right direction.