Title: bpo-29569: threading.Timer class: Continue periodical execution till action return True by slytomcat · Pull Request #121 · python/cpython · GitHub
Open Graph Title: bpo-29569: threading.Timer class: Continue periodical execution till action return True by slytomcat · Pull Request #121 · python/cpython
X Title: bpo-29569: threading.Timer class: Continue periodical execution till action return True by slytomcat · Pull Request #121 · python/cpython
Description: I think that functionality of threading.Timer class can be easily extended to generate the sequence of runs with specified period. The idea comes from the GLib.timeout_add function. http://bugs.python.org/issue29569 As most current CB functions that are used in Timer returns nothing (None) they will run only once as earlier. Only functions that returns True will continue their periodical execution. There are two ways to stop such continues execution: Return something that is not True from action function, Call cancel method of Timer class. It is my first contribution and I kindly ask to help me with required future actions. Thanks
Open Graph Description: I think that functionality of threading.Timer class can be easily extended to generate the sequence of runs with specified period. The idea comes from the GLib.timeout_add function. http://bugs.pyt...
X Description: I think that functionality of threading.Timer class can be easily extended to generate the sequence of runs with specified period. The idea comes from the GLib.timeout_add function. http://bugs.pyt...
Opengraph URL: https://github.com/python/cpython/pull/121
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:cbe8ba74-4640-5c5a-ce4e-feb2c6a795b4 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9760:1AB621:BB9270:101510D:6969F2FE |
| html-safe-nonce | 61267eb615a5d481ac2f34c535099e90600b65829fa369afc5c62eb86ffcf119 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzYwOjFBQjYyMTpCQjkyNzA6MTAxNTEwRDo2OTY5RjJGRSIsInZpc2l0b3JfaWQiOiI2OTUyODU2OTM1MDEwNTMwMDQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 97e8f47523991841170d2aea1d2fb1d6dfa0c5ee6b534d25b897cf2eed2c6593 |
| hovercard-subject-tag | pull_request:106327306 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python/cpython/pull/121/checks |
| twitter:image | https://avatars.githubusercontent.com/u/8654729?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8654729?s=400&v=4 |
| og:image:alt | I think that functionality of threading.Timer class can be easily extended to generate the sequence of runs with specified period. The idea comes from the GLib.timeout_add function. http://bugs.pyt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width