Writing asynchronous code in C has always been a challenge. Traditional callback-based approaches, including GLib’s async/finish pattern, often lead to the so-called callback hell that’s difficult to read and maintain. The libdex library offers a solution to this problem, and I recently worked on expanding the integration with GLib’s GDBus subsystem. The Problem with the Sync and Async Patterns Writing C code involving tasks which can take non-trivial amount of time has traditionally re...| swick's blog