dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

Immediate unsubscription of signals #316

Closed zeenix closed 1 year ago

zeenix commented 1 year ago

Currently, we queue the match rule unsubscription in the sync Drop impl of MessageStream as we don't have an async equivalent. This means the users have no way of either unsubscribing from signals immediately or even an easy/simple way to be notified of the subscription. It should be relatively easy to provide an async API that unsubscribes from the match rules immediately. This should be added for both MessageStream and SignalStream.

zeenix commented 1 year ago

mentioned in commit 3548e84b6cafde05a6d98039c678b3552d75a0ed