Promises/A+ implementation for Qt/C++
Go to file
Simon Brunel 1f30224578 Add support for creating promises from Qt signals (#25)
Introduce a new `QtPromise::connect()` helper that allows to create a promise resolved from a single signal and optionally, rejected by another one (from a different object or not). The promise type is determined by the type of the first signal argument (other arguments are currently ignored). A `QPromise<void>` is returned if the resolve signal doesn't provide any argument.

If the rejection is emitted before the promise is resolved, the promise will be rejected with the value of the first argument (other arguments being ignored). If the rejection signal doesn't provide any argument, the promise will be rejected with `QPromiseUndefinedException` if the signal is emitted. Additionally, the promise will be automatically rejected with `QPromiseContextException` if the source object is destroyed before the promise is resolved.
2019-03-04 14:02:32 +01:00
docs Add support for creating promises from Qt signals (#25) 2019-03-04 14:02:32 +01:00
include Add support for creating promises from Qt signals (#25) 2019-03-04 14:02:32 +01:00
package/features Initial implementation 2017-05-14 19:03:01 +02:00
src Add support for creating promises from Qt signals (#25) 2019-03-04 14:02:32 +01:00
tests Add support for creating promises from Qt signals (#25) 2019-03-04 14:02:32 +01:00
.appveyor.yml Test LTS and latest Qt versions in AppVeyor 2019-02-21 12:07:21 +01:00
.gitignore Enhance QPromise<T>::wait documentation 2018-02-17 15:41:46 +01:00
.travis.yml Fix Gcov warning 'version 409*, prefer version 408*' 2019-03-01 17:47:32 +01:00
LICENSE Update LICENSE year and cleanup a few comments 2019-02-18 20:30:41 +01:00
qpm.json Bump version to 0.4.0 2018-09-09 21:27:33 +02:00
qtpromise.pri Setup Travis CI builds and code coverage 2017-05-26 14:39:11 +02:00
qtpromise.pro Move helpers in separate file and add unit tests 2017-05-25 09:19:36 +02:00
README.md Add support for creating promises from Qt signals (#25) 2019-03-04 14:02:32 +01:00

Promises/A+

QtPromise

qpm Travis coverage

Promises/A+ implementation for Qt/C++.

Requires Qt 5.6 (or later) with C++11 support enabled.

Documentation

License

QtPromise is available under the MIT license.