Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multiprocessing queu empty error

import multiprocessing
import queue # or Queue in Python 2

f = multiprocessing.Queue()
try:
    f.get(True,0.1)
except queue.Empty: # queue here refers to the module, not a class
    print('foo')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #multiprocessing #queu #empty #error
ADD COMMENT
Topic
Name
3+5 =