Skip to content

Instantly share code, notes, and snippets.

@deadb0d4
deadb0d4 / cppcoro-with-asio.cpp
Created October 5, 2025 16:05 — forked from isergeyam/cppcoro-with-asio.cpp
Using cppcoro with asio
#include <boost/asio.hpp>
#include <cppcoro/schedule_on.hpp>
#include <cppcoro/single_consumer_event.hpp>
#include <cppcoro/sync_wait.hpp>
#include <cppcoro/task.hpp>
#include <cppcoro/when_all.hpp>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <utility>
{
"editor.fontSize": 14,
"terminal.integrated.fontSize": 14,
"editor.bracketPairColorization.enabled": false,
"editor.inlayHints.enabled": "off",
"extensions.ignoreRecommendations": true,
"terminal.integrated.enableMultiLinePasteWarning": "auto",
"workbench.activityBar.location": "hidden",
"workbench.layoutControl.enabled": false,
"window.commandCenter": false,
$ANSIBLE_VAULT;1.1;AES256
34393861653734393464636562396464366632333865623762666461323561376366656333386633
3861363535623265303733343437363136356335646166640a333966646333343336643930303538
37313339303635636432663830666438616536363836613533643462383437343934386563353264
6131653730653333340a373635646661383663366164353532343563656138656363653961393234
34353232383266646634353334343162383864653432303130333261373334313666373439363339
64323662373364313364623935646534623635316136363466373661376633666363383532356430
62323431383831663232396234626465336631333930646162656330363135613032623638653764
30343534346263626138653231656366306331346233303466386533646332343166323738373830
61623337343837613830356630376132613232643638623135366233316365376263323463386131