Title: Infinite loop thread in 6_Queue Exercise food_ordering_system.py · Issue #56 · codebasics/data-structures-algorithms-python · GitHub
Open Graph Title: Infinite loop thread in 6_Queue Exercise food_ordering_system.py · Issue #56 · codebasics/data-structures-algorithms-python
X Title: Infinite loop thread in 6_Queue Exercise food_ordering_system.py · Issue #56 · codebasics/data-structures-algorithms-python
Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py Issue: def serve_orders(): time.sleep(1) while True: order = food_order_queue.dequeue() print("Now servi...
Open Graph Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py Issue: def serve_orders(): time.sleep(1) while True: order = foo...
X Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py Issue: def serve_orders(): time.sleep(1) while True: order = foo...
Opengraph URL: https://github.com/codebasics/data-structures-algorithms-python/issues/56
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infinite loop thread in 6_Queue Exercise food_ordering_system.py","articleBody":"https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py\r\n\r\n**Issue:**\r\n```\r\ndef serve_orders():\r\n time.sleep(1)\r\n while True:\r\n order = food_order_queue.dequeue()\r\n print(\"Now serving: \",order)\r\n time.sleep(2)\r\n```\r\n**Proposed below:**\r\n```\r\ndef serve_orders():\r\n time.sleep(1)\r\n while not food_order_queue.is_empty():\r\n order = food_order_queue.dequeue()\r\n print(\"Now serving: \",order)\r\n time.sleep(2)\r\n```","author":{"url":"https://github.com/udipta","@type":"Person","name":"udipta"},"datePublished":"2022-05-30T17:44:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/56/data-structures-algorithms-python/issues/56"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3b67e33f-2313-d475-6c0a-fe9c4d97a744 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E230:3BAB6B:40CD5E:556C94:696B0810 |
| html-safe-nonce | 5293f81cc3623d0690cc798652a753351f8f0b82fe2611354647daee0c4c27d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjMwOjNCQUI2Qjo0MENENUU6NTU2Qzk0OjY5NkIwODEwIiwidmlzaXRvcl9pZCI6Ijc3MjQyNzk3NjA1NTE2MTAzODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92564fc5cd6e0034d331e9ae898c2eca15eb753f2f141d630061487a45668899 |
| hovercard-subject-tag | issue:1252998055 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codebasics/data-structures-algorithms-python/56/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1fe2977712efd51618222b9135a8b2b46911cff4f6ca1b59a0e3bb575932fb52/codebasics/data-structures-algorithms-python/issues/56 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1fe2977712efd51618222b9135a8b2b46911cff4f6ca1b59a0e3bb575932fb52/codebasics/data-structures-algorithms-python/issues/56 |
| og:image:alt | https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py Issue: def serve_orders(): time.sleep(1) while True: order = foo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | udipta |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/codebasics/data-structures-algorithms-python git https://github.com/codebasics/data-structures-algorithms-python.git |
| octolytics-dimension-user_id | 16063416 |
| octolytics-dimension-user_login | codebasics |
| octolytics-dimension-repository_id | 299539326 |
| octolytics-dimension-repository_nwo | codebasics/data-structures-algorithms-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 299539326 |
| octolytics-dimension-repository_network_root_nwo | codebasics/data-structures-algorithms-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width