Tasks
Now that we've learned about threads, let's discuss tasks for asynchronous programming.
We'll cover the following
In addition to threads, C++ has tasks to perform work asynchronously. Tasks need the header
🔑 Regard tasks as data channels
Tasks behave like data channels. The promise puts its result in the data channel. The future waits for it and picks it up.
Get hands-on with 1400+ tech skills courses.