* Announce the occurrence of an event * * @param {string} eventName name of the event
(eventName, ...args)
| 172 | * @param {string} eventName name of the event |
| 173 | */ |
| 174 | async function emit(eventName, ...args) { |
| 175 | await runWhenConnected(async ({ publisher }) => |
| 176 | publisher.publish( |
| 177 | getPrefixedEventName(eventName), |
| 178 | safeStringify.default(args, replacer), |
| 179 | ), |
| 180 | ) |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Remove all listeners of an event |
nothing calls this directly
no test coverage detected
searching dependent graphs…