This also includes a small change that causes emitted data to get copied. This prevents any kind of race conditions with the emitting code changing the map after emit. Once event data is always copied, it can never be modified for future handlers from the time of being emitted.
This also includes a small change that causes emitted data to get copied. This prevents any kind of race conditions with the emitting code changing the map after emit. Once event data is always copied, it can never be modified for future handlers from the time of being emitted.