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

How does one error a AsyncFuture::Deferred? #35

@remster

Description

@remster

And how does one communicate that error?
Is this what 'cancel' is for? - doesn't sound this way as cancel is the interface of the future not of the promise.

And a related question, having a failed QFuture - how does one "rescue" it? - i.e.: having this chain:
return observe(reading).subscribe(updateCache).future(); - suppose reading fails and suppose there is a way of correcting it:
return observe(reading).subscribe(updateCache, rescue).future();
the above doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions