Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

v0.4.1 Release

Latest
Compare
Choose a tag to compare
@benlau benlau released this 15 Mar 07:48
· 84 commits to master since this release

AsyncFuture 0.4.1 Release

Changes

  1. Subscribe Callback
  • It is now supported to catch an exception. The future will be cancelled.
auto future = observe(input).subscribe([]() {
	throw QException();
}).future(); // It will be cancelled.
  1. Combinator

It will set progressValue and progressMaxim of its contained future.

        auto d1 = timeout(50);
        auto d2 = timeout(60);
        auto d3 = timeout(30);

        auto combinator = combine();

        combinator << d1 << d2 << d3;

        auto future = combinator.future();
        QCOMPARE(future.progressValue(), 0);
        QCOMPARE(future.progressMaximum(), 3);

        await(future);

        QCOMPARE(future.progressValue(), 3);
        QCOMPARE(future.progressMaximum(), 3);
  1. Merged #8 - fix noisy gcc 7.3 shadow warning

Bug Fix

  1. Not able to take rvalue reference type in subscribe callback.

  2. Complete(QFuture<QFuture>) is a blocked call.