qxmpp-project / qxmpp

Cross-platform C++ XMPP client and server library
408 stars 197 forks source link

Replace QFuture with `co_await`able, lightweight QXmppTask #502

Closed lnjX closed 1 year ago

lnjX commented 1 year ago

If you have a look at the implementation of QFuture, it's the opposite of lightweight.

Also it would be nice to enable C++20 users to co_await our futures. (Without requiring C++20 or external libraries like QCoro).

There's already a prototype branch for this (https://github.com/lnjX/qxmpp/commits/simple-futures).

Requirements: