NodejsEnvironment.UnhandledPromiseRejection event
Event raised when there is an unhandled promise rejection in the Node.js environment.
C#
public event EventHandler<UnhandledPromiseRejectionEventArgs>? UnhandledPromiseRejection;
Remarks
Event-handlers may be added or removed from any thread, however all events are raised on the environment thread.
See Also
- class UnhandledPromiseRejectionEventArgs
- class NodejsEnvironment
- namespace Microsoft.JavaScript.NodeApi.Runtime