Registry / async / qcoro
library0.12.0vcpkgunverified

Coroutine support for Qt

vcpkg install qcoro
INSTALL
IMPORT
SIG · QCORO
Q
qcoro
asynccppv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QCoro/QCoroCore
#include <QCoro/QCoroCore>

Use QCoro to sleep in a coroutine

#include <QCoro/QCoroCore> #include <QCoreApplication> #include <QTimer> #include <iostream> QCoro::Task<> asyncTask() { co_await QCoro::sleepFor(std::chrono::seconds(1)); std::cout << "Hello from coroutine!" << std::endl; } int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); asyncTask(); QTimer::singleShot(2000, &app, &QCoreApplication::quit); return app.exec(); }
Debug
Known issues
gotchaRequires C++20 coroutine support and Qt 5.15+ or Qt 6
fix
Use a compiler with coroutine support (GCC 10+, Clang 10+, MSVC 2019 16.8+)
affects: *
Upgrade
Version history
0.12.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
Amazon
1
Resources

No resource links recorded.