This changeset adds a new set_rejection_handler() function to set the global rejection handler for unhandled promise rejections.
The default promise rejection handler will log an error message plus its stack trace. The new set_rejection_handler() function may be used to use customize the log message or write to custom log targets.
This changeset adds a new
set_rejection_handler()
function to set the global rejection handler for unhandled promise rejections.The default promise rejection handler will log an error message plus its stack trace. The new
set_rejection_handler()
function may be used to use customize the log message or write to custom log targets.Builds on top of #248 Refs #87