The word “flush” has a few meanings, and the name of method was initially confusing for me.
The “unload” will better describe what the method does -
“removes all listeners functions and stops handling of uncaught errors and promise rejections.”
You can support both method names with the same implementation for some time to have backward compatibility.
The word “flush” has a few meanings, and the name of method was initially confusing for me.
The “unload” will better describe what the method does -
“removes all listeners functions and stops handling of uncaught errors and promise rejections.”
You can support both method names with the same implementation for some time to have backward compatibility.