Simon Brunel f610826ef0 Implement QtPromise::attempt(functor, args...)
Add a new helper that calls functor immediately and returns a promise fulfilled with the value returned by functor. Any synchronous exceptions will be turned into rejections on the returned promise. This is a convenient method that can be used instead of handling both synchronous and asynchronous exception flows.

Also simplify PromiseDispatch which now calls the functor with a variable number of arguments (including none).
2018-05-31 09:02:51 +02:00
2017-06-10 10:06:25 +02:00
2017-05-14 19:03:01 +02:00
2017-06-10 11:27:38 +02:00
2018-03-01 22:32:46 +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.

Description
Promises/A+ implementation for Qt/C++
Readme MIT 1.2 MiB
Languages
C++ 97.8%
CMake 2.2%