chriskohlhoff / talking-async Goto Github PK
View Code? Open in Web Editor NEWExample programs for Talking Async videos
Example programs for Talking Async videos
What about showing some examples with the work class and post()
method? Documented here: https://think-async.com/Asio/asio-1.28.0/doc/asio/overview/core/threads.html
And the differences between a co_spawn
vs post()
? Eg. a worker with threads and post() method can be very useful is specific use-cases.
I now read this tutorial: https://studiofreya.com/cpp/boost/c-boost-asio-introduction-tutorial/. And I think in my situation I might want to use this.
But there is no such example in either this repository nor in your examples folder AFAIK: https://github.com/chriskohlhoff/asio/tree/master/asio/src/examples
EDIT: And the work class has been deprecated in favor of executor_work_guard
, so it's even more important to create a good example.
Hey @chriskohlhoff it is amazing talk indeed.
I find useful if you can update the Makefile. -fcoroutines
is needed atleast on Ubuntu 20.04 using gcc
.
CXXFLAGS=-std=c++20 -pthread -Wall -Wextra -fcoroutines -fno-inline -I$(ASIO_ROOT)/include -g -DASIO_ENABLE_HANDLER_TRACKING
SOURCE=$(wildcard *.cpp)
PROGRAMS=$(SOURCE:.cpp=)
DSYM=$(SOURCE:.cpp=.dSYM)
all: $(PROGRAMS)
clean:
rm -rf $(PROGRAMS) $(DSYM)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.