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 #90

Closed arg0d closed 2 months ago

arg0d commented 2 months ago

Alternative to #89 and #88, this is the simplest solution, assigning unrelated ID for the same callback object. I like the simplicity of this, but in my mind it may be difficult to debug callback issues if callback ID is completely unrelated for the same callback. But maybe I'm overthinking this?

matszczygiel commented 2 months ago

I like the simplicity of the solution +1