Language
C++
Compiler
gcc 9.3.0
Options
Optimization
Boost 1.73.0
C++2a
no pedantic
Raw runtime options
::1
future
coroutine
callback
$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.73.0/gcc-9.3.0/include -std=c++2a
-----------------------
FUTURE DEMO
-----------------------
Future:
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Future: the maximum number of attempts was exceeded
-----------------------
COROUTINE DEMO
-----------------------
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
NOT Connected in coro: the maximum number of attempts was exceeded
-----------------------
CALLBACK DEMO
-----------------------
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Checking "Connection refused"
Callback: false, the maximum number of attempts was exceeded
Exit Code:
0