Skip to content

UnhandledPromiseRejectionWarnings #8

@hotfix519

Description

@hotfix519

I'm using this lib for the first time, and I'm seeing these warnings somewhat frequently. Essentially any time I have a Promise task, and it's rejected, I see this warning. As well after attempting to cancel the queue.

Poking around with the code, I found that if you add a catch handler to the Promise created in the push method, these warnings no longer appear. It does also appear that the lib continues to function the way it's intended to, but I can't be 100% certain.

What do you suggest is the best way to avoid these errors/warnings? With unhandled promise rejections going to cause program termination in the future, it's a big issue!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions