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

$q's finally documentation is not consistent with implementation #9291

Closed
@shahata

Description

@shahata

The docs say that finally "allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value".

However, the truth is that if the finally callback throws an exception or returns a promise that later gets rejected, the original promise will be rejected with that exception/reason.

The question is whether we should fix the doc or change the implementation in order match the semantics of Q's finally (which will obviously be a breaking change)...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions