Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Promises in C++ - The Universal Glue for Asynchronous Programs

CppNow via YouTube

Overview

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

Reviews

Start your review of Promises in C++ - The Universal Glue for Asynchronous Programs

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.