Promises in C++ - The Universal Glue for Asynchronous Programs
Explore the power of promises in C++ for asynchronous programming in this comprehensive conference talk from C++Now 2017. Dive into the limitations of existing promise libraries and discover dplp, a new implementation that overcomes these challenges. Learn how this versatile class with a single member function can become the universal glue for connecting disparate networking libraries, wrapping complex callback-based APIs, and orchestrating asynchronous operations. Through practical examples based on real-world use cases at Bloomberg, gain intuition on when and how to apply promises effectively. Understand the evolution from blocking threads and nested callbacks to the elegance of promises, covering topics such as exception handling, asynchronous interfaces, and fundamental operations. By the end of this 84-minute presentation, equip yourself with the knowledge to leverage promises in your C++ projects, enhancing your ability to write efficient and maintainable asynchronous code.