python multiprocessing queu empty error

Solutions on MaxInterview for python multiprocessing queu empty error by the best coders in the world

showing results for - "python multiprocessing queu empty error"
Emilia
04 Oct 2020
1import multiprocessing
2import queue # or Queue in Python 2
3
4f = multiprocessing.Queue()
5try:
6    f.get(True,0.1)
7except queue.Empty: # queue here refers to the module, not a class
8    print('foo')
9
similar questions
queries leading to this page
python multiprocessing queu empty error