workerpool icon indicating copy to clipboard operation
workerpool copied to clipboard

Feature enhancement: Adding Pool.broadcast() for sending some data to all child workers

Open stainleebakhla opened this issue 5 years ago • 3 comments

Hi,

It would be a useful feature if there could be a way to send some data to all of the child workers in a pool. Something like Pool.broadcast() function would work. This could be really useful in scenarios when some initial data needs to be sent to a worker before starting any actual work.

Thanks

stainleebakhla avatar Sep 23 '20 16:09 stainleebakhla

Thanks for your suggestion Stainlee.

I think your idea is similar to what is discussed in #65. If so let's please continue the discussion there.

josdejong avatar Oct 03 '20 10:10 josdejong

is there a plan to use worker_thread broadcastchannel, which make all worker recevie a broadcast message and do some actions.

frankie-zeng avatar Jul 05 '23 14:07 frankie-zeng

I'm open to pull requests implementing this (see also #65).

josdejong avatar Jul 05 '23 14:07 josdejong