Skip to content

Allow definition of Promise reject value #7

@OverHash

Description

@OverHash

It would be helpful to allow a rejection value to be defined to a Promise.

Perhaps this could be defined as Promise<T, U> where U is the rejection value. Any rejection stuff (e.g. reject, Promise.timeout, Promise.now) could use this value to make Promises more type safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions