tarantool/tntcxx

Implement decent futures

Opened this issue · 0 comments

Now we are using simple ids and hashmap to check if the response is ready. Let's implement simple&fast futures with convenient and regular then/subscribe API. Good references are:
Scylla's seastar: http://docs.seastar.io/master/group__future-module.html
Folly: https://github.com/facebook/folly/blob/main/folly/fibers/README.md
Even boost: https://www.boost.org/doc/libs/1_77_0/libs/fiber/doc/html/fiber/synchronization/futures/future.html