We currently pass the C# client sorter as a delegate that is run directly by Rust. This means we don't really know what thread context the callback runs on, which can cause weird races in some instances. The delegate we pass across the FFI border should instead just spawn a task into the .Net executor that runs the sorter callback.
We currently pass the C# client sorter as a delegate that is run directly by Rust. This means we don't really know what thread context the callback runs on, which can cause weird races in some instances. The delegate we pass across the FFI border should instead just spawn a task into the .Net executor that runs the sorter callback.