Closed benoitc closed 8 years ago
For some application I need to update the state of all the workers, any idea how it could be done? I m not sure what's the best way to recover the list of all workers PID in a pool and send them a message. Any idea is welcome :)
Off the top of my head: use wpool:cast with next_worker strategy NumberOfWorkers times. That's how we do it in the tests.
wpool:cast
next_worker
NumberOfWorkers
i missed the answer, sorry for that.
For some application I need to update the state of all the workers, any idea how it could be done? I m not sure what's the best way to recover the list of all workers PID in a pool and send them a message. Any idea is welcome :)