-
Hi, I am trying to receive a signal "NameAcquired" from the session bus with tokio. My goal is to receive a signal when a specific object is added to the bus. I took the example and modified it as follow:
However it does not work. I can see the signals with dbus-monitor (for instance by launching vlc) but my program does not react. Any idea of what I am missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unless tokio has done something weird with its main function, |
Beta Was this translation helpful? Give feedback.
Unless tokio has done something weird with its main function,
loop {}
busy-loops with 100% CPU without giving any chance for anything else to run, including signal processing. You need something likefuture::pending::<()>().await
instead.