Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

p-fatal

mk-pmb1.5kISC0.1.5

Re-throw unhandled promise rejections in the next turn, so other listeners get a chance to also run.

promise, promises, rejection, unhandled rejection

readme



p-fatal

Re-throw unhandled promise rejections in the next turn, so other listeners get a chance to also run.

API

This module exports nothing. It does all work as a side effect of importing it.

Known issues

  • Versions 0.1.x don't care whether the rejection becomes handled later. I currently consider this a feature, but I'd be willing to offer opt-out. I think it's still a better idea to setup your rejection handlers asap.

 

License

ISC