Title: Async Callback for match_signal_async() method? · Issue #63 · python-sdbus/python-sdbus · GitHub
Open Graph Title: Async Callback for match_signal_async() method? · Issue #63 · python-sdbus/python-sdbus
X Title: Async Callback for match_signal_async() method? · Issue #63 · python-sdbus/python-sdbus
Description: Is there a way to continuously process a property-changed signal using an async callback method? I want to subscribe to the "org.bluez" interface to see when a phone connects/disconnects from Bluetooth. I was using get_signal_queue_async...
Open Graph Description: Is there a way to continuously process a property-changed signal using an async callback method? I want to subscribe to the "org.bluez" interface to see when a phone connects/disconnects from Bluet...
X Description: Is there a way to continuously process a property-changed signal using an async callback method? I want to subscribe to the "org.bluez" interface to see when a phone connects/disconnects ...
Opengraph URL: https://github.com/python-sdbus/python-sdbus/issues/63
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Async Callback for match_signal_async() method?","articleBody":"Is there a way to continuously process a property-changed signal using an async callback method? I want to subscribe to the \"org.bluez\" interface to see when a phone connects/disconnects from Bluetooth. I was using `get_signal_queue_async` before but this has been replaced with `match_signal_async`. I tried making my callback async `_task_properties_changed` but nothing fired. When I changed it non-async, it fired properly but I need to call async methods based on the contents of this signal.\r\n\r\n``` py\r\nslot = await self._bus.match_signal_async(\"org.bluez\", None, \"org.freedesktop.DBus.Properties\", \"PropertiesChanged\", self._task_properties_changed)\r\n```\r\n\r\nThanks!\r\n\r\n","author":{"url":"https://github.com/wes8ty","@type":"Person","name":"wes8ty"},"datePublished":"2024-04-11T18:11:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/63/python-sdbus/issues/63"}
| 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:87470ada-b265-dde8-07e4-69ee7bc67d79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFBE:B8C14:16A5D8:1CD106:698D4FA0 |
| html-safe-nonce | c1e5968864b1d091ce398330a12a697a746d893c18a19100333ec903c7a8b103 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkJFOkI4QzE0OjE2QTVEODoxQ0QxMDY6Njk4RDRGQTAiLCJ2aXNpdG9yX2lkIjoiNTYxMDIzNDYxMDUwMTYzNjAwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48c10ff7c8ef57794a5a4f44f2cdfc0de9a513ee71b471094a96e87d5fde5068 |
| hovercard-subject-tag | issue:2238287537 |
| 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/python-sdbus/python-sdbus/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c425d32eabc5906ae99da024ccefc7797b0483c50997220d56f489696798903f/python-sdbus/python-sdbus/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c425d32eabc5906ae99da024ccefc7797b0483c50997220d56f489696798903f/python-sdbus/python-sdbus/issues/63 |
| og:image:alt | Is there a way to continuously process a property-changed signal using an async callback method? I want to subscribe to the "org.bluez" interface to see when a phone connects/disconnects from Bluet... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wes8ty |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-sdbus/python-sdbus git https://github.com/python-sdbus/python-sdbus.git |
| octolytics-dimension-user_id | 88226657 |
| octolytics-dimension-user_login | python-sdbus |
| octolytics-dimension-repository_id | 311269257 |
| octolytics-dimension-repository_nwo | python-sdbus/python-sdbus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 311269257 |
| octolytics-dimension-repository_network_root_nwo | python-sdbus/python-sdbus |
| 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 | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width