get(block=True, timeout=None)
Remove andreturn an itemfromthe queue.
If optional args block istrueandtimeoutis None (the default), block if necessary until an itemis available. If timeoutis a positive number, it blocks at most timeout seconds and raises the Empty exception if no item was available within thattime. Otherwise (block isfalse), return an itemif one is immediately available, else raise the Empty exception (timeoutis ignored inthat case).
get_nowait()
Remove andreturn an itemfromthe queue without blocking.