Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.
Syllabus
Introduction
Open Source
Problem
Blocking Threads
Spawning Off Threads
Asynchronous Libraries
State Machines
nested callbacks
event systems
Scaling
Standed Future
Exceptions for Errors
Asynchronous Interface
DPL Promise
Fundamental Operations
Why dont we move values out of promises
Promise constructor
Construction helpers
Continuation
Empty Promises
Question
Example
ListenUntilError
Callback Connect
SingleCallback Systems
Dimension
Promise
Zookeeper
GetChildren
Taught by
CppNow