Async and Finaliser Deadlocks
tratt.net·6h·
Flag this post

Two days ago I was listening to the Oxide podcast on futurelocks, a very complicated bug involving async code in Rust. I must admit that I struggled to understand what was going on, partly because of the subject matter, and partly because podcasts are my backdrop to household chores1. At some point towards the end, though, someone phrased things in a way that my pea brain could immediately understand.

In essence, I think futurelocks are a complex instance of a long-standing problem with (what I will call for now) asynchronous code. You may notice that I did not say a “well known” problem. Personally, I only realised this problem exists a couple of years ago. For better or worse, subsequent discussions with many other f…

Similar Posts

Loading similar posts...