NordSecurity / uniffi-bindgen-cs

C# bindings generator for uniffi-rs
https://github.com/NordSecurity/uniffi-bindgen-cs
Mozilla Public License 2.0
109 stars 21 forks source link

Fix short lived callback lifetimes #88

Closed arg0d closed 2 months ago

arg0d commented 2 months ago

Callback refcounts were not taken into account for short-lived callbacks. After changes, it's ok to use the same callback multiple times in short-lived context. Added a test for this.

Fixes https://github.com/NordSecurity/uniffi-bindgen-cs/issues/79