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: redirect.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:1081cf8b-4caa-786a-4a7d-fdbf179e6581 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC96:11169F:FBA33F:14D3052:696ACE68 |
| html-safe-nonce | 212a20b625579a2dfbb147f21fc3f76bb441c8fa2ab7f88e4f3da51fbe01b92f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzk2OjExMTY5RjpGQkEzM0Y6MTREMzA1Mjo2OTZBQ0U2OCIsInZpc2l0b3JfaWQiOiIyMzc3MTQ2MTI5NTkwMTc3Mzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 04bc2ed7dc9141cdb02935b5c6ee1fb044e839b7af53b545d8d51ea3b3102690 |
| 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 | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| 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 | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width