( processors: EventProcessor[], event: Event | null, hint: EventHint, index: number = 0, )
| 9 | * Process an array of event processors, returning the processed event (or `null` if the event was dropped). |
| 10 | */ |
| 11 | export function notifyEventProcessors( |
| 12 | processors: EventProcessor[], |
| 13 | event: Event | null, |
| 14 | hint: EventHint, |
| 15 | index: number = 0, |
| 16 | ): PromiseLike<Event | null> { |
| 17 | try { |
| 18 | const result = _notifyEventProcessors(event, hint, processors, index); |
| 19 | return isThenable(result) ? result : resolvedSyncPromise(result); |
| 20 | } catch (error) { |
| 21 | return rejectedSyncPromise(error); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | function _notifyEventProcessors( |
| 26 | event: Event | null, |
no test coverage detected