Files
qtpromise/docs/qtpromise/exceptions/canceled.md
Simon Brunel cc29ef3512 Fix docs C++ snippet for the .fail() args
- Fix the wrong lambda format (missing `[]`).
- Make consistent argument naming (`error`).
- Use `const &` when appropriated.
2020-01-04 13:25:19 +01:00

471 B

QPromiseCanceledException

Since: 0.1.0

This exception is thrown for promise created from a QFuture which has been canceled (e.g. using QFuture::cancel()), for example:

auto output = QtPromise::resolve(future)
    .fail([](const QPromiseCanceledException& error) {
        // `future` has been canceled!
    });

::: tip NOTE QtPromise doesn't support promise cancelation (yet?) :::