QPromiseContextException

Since: 0.5.0

When a promise is created using QtPromise::connect(), this exception is thrown when the sender object is destroyed, for example:

auto promise = QtPromise::connect(sender, &Object::finished, &Object::error);

promise.fail([](const QPromiseContextException&) {
    // 'sender' has been destroyed.
})
Last Updated: 3/4/2019, 1:02:32 PM