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: patch-diff.githubusercontent.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:b6c54556-019d-6d02-5cf6-99692732aba2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9872:71086:1F90357:2A1B486:696EEC8C |
| html-safe-nonce | bfc42360a56081532601335f50ac9eb92e3b2524f4c506114b0b0f22f2c68ccd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODcyOjcxMDg2OjFGOTAzNTc6MkExQjQ4Njo2OTZFRUM4QyIsInZpc2l0b3JfaWQiOiI5OTU5OTMzODI4ODM4ODAwNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1db9161e72b68680d07a909c24a008a55686997559818ff290ba94f7a760fedb |
| 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 | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width