Y
Hacker News
new
|
ask
|
show
|
jobs
by
icebraining
3341 days ago
I'd say the simplest solution is a global (or just shared) variable using a thread-safe container like queue.Queue. There's also multiprocessing.Queue, which supports sharing the queue across multiple workers.