Creating Custom Events

What happens when multiple custom events are dispatched simultaneously?
for (let i = 0; i < 1000; i++) {
  const event = new CustomEvent(`event${i}`, {
    detail: { index: i }
  });
  document.dispatchEvent(event);
}
Next Question (8/20)