This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <coroutine> | |
#include <iostream> | |
#include <thread> | |
#include <vector> | |
/* | |
The idea of this snippet is as such: | |
> coro1 does some stuff then co_await coro2 | |
> coro2 does some more stuff and co_await coro3 |