Add since to onUnhandledRejection

This commit is contained in:
eryn L. K 2021-12-27 22:08:54 -05:00
parent 9e51c039f7
commit eb3f2e77e2

View file

@ -1997,6 +1997,7 @@ end
The callback is called with the actual promise that rejected, followed by the rejection values. The callback is called with the actual promise that rejected, followed by the rejection values.
@since v3.2.0
@param callback (promise: Promise, ...: any) -- A callback that runs when an unhandled rejection happens. @param callback (promise: Promise, ...: any) -- A callback that runs when an unhandled rejection happens.
@return () -> () -- Function that unregisters the `callback` when called @return () -> () -- Function that unregisters the `callback` when called
]=] ]=]