Рет қаралды 15,214
►Full Series Playlist: • Modern C++ (cpp) Concu...
►Find full courses on: courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Git Repo: github.com/MikeShah/moderncpp...
►Lesson Description: In this lesson I teach you std::async and the idea that it returns a future. We block on the futures result if we need to compute the result, and otherwise std::async is an easy way to launch threads.
00:00 Introduction to std::async
1:11 What is a future
2:02 Creating a std::async function
3:27 Retrieving result with get
4:00 What is the point of async?
5:29 Waiting on a futures result
6:00 Progress is made in background on a task
►KZfaq Channel: / mikeshah
►Please like and subscribe to help the channel!