Closed MaxVerevkin closed 3 months ago
By the way, is
wait_until_ready
(src/blocks/privacy/pipewire.rs:173) even necessary? If I comment out the lineclient.wait_until_ready().await;
nothing bad happens.
This is there so that we don't spam that the block with updates as the nodes/links are loaded
This is there so that we don't spam that the block with updates as the nodes/links are loaded
I tried to test it, and without wait_until_ready()
the block is notified just once. This is probably not deterministic, and it could happen that it is notified multiple times.
I think this can be implemented using an idle callback, which is enabled only when something happens. Then blocks are notified from the that callback, which then disables itself (if that's possible). I try implementing this a bit later.
By the way, is
wait_until_ready
(src/blocks/privacy/pipewire.rs:173) even necessary? If I comment out the lineclient.wait_until_ready().await;
nothing bad happens.