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

toast: remove $mdToast.cancel API method #4218

@jelbourn

Description

@jelbourn

The promise returned from opening a toast is used only to notify about the closing of the toast. As such, there isn't any reason to also allow that promise to be rejected, since it's not clear what the difference between resolve and reject would be.

We can optionally leave the method there as deprecated so we don't break existing users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions