Created
July 25, 2023 12:55
-
-
Save ChadDa3mon/44774c8292aca1c73836d848ea319560 to your computer and use it in GitHub Desktop.
Python Queues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_queue = Queue() | |
size_of_my_queue = my_queue() | |
my_queue.put(log_entry) | |
while not my_queue.empty(): | |
item = my_queue.get().strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment