Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Futures WIP #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

wsxarcher
Copy link
Contributor

Add the possibility to return QVariant futures in the services.
Futures uses QFuture therefore runs in a different thread (or the QThreadPool specified as second argument, useful to simulate a queue if you limit the pool to 1) therefore shared variables access must be handled correctly.
QFutures cannot really be cancelled by design but client disconnection is handled correctly.

This is just a POC and not well tested yet.

@joncol
Copy link
Owner

joncol commented Jul 31, 2021

Nice, I'm not really doing much C++ these days. How's the situation when it comes to unit testing etc? Any chance we (or rather: you) could put some tests in place for this? There are no existing tests to lean on unfortunately, so maybe that's too much effort?

Otherwise, let me know if you do some more manual testing on this and feel confident enough for me to merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants