Skip to content

zb: Ensure atomic Proxy::dest_unique_name initialization

Zeeshan Ali Khan requested to merge zeenix/zbus:issue-187 into main

Make use of async locking to ensure no 2 threads resolve the destination unique name twice and ending up with a panic.

The fix could have been much simpler with async-oncecell crate but it doesn't seem to be a very reliable crate as per author's own words and seems to have some very basic soundness issues.

Fixes #187 (closed).

Merge request reports