I just learn about Drogon C++ framework, in many places it uses callback for async tasks. It is like a javascript callback long time ago. Javascript now has future.then
and also the async await
.
So my question is it possible using future->then
for wait the result to be ready. From what I read the std::future
does not have .then method
. Maybe any other library that able to achieve it?
Using current callback especially for database access (query to database) are so nested.