MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / #flushEvent

Method #flushEvent

src/controller/main.controller.js:33–39  ·  view source on GitHub ↗
(eventHandler)

Source from the content-addressed store, hash-verified

31 }
32
33 #flushEvent(eventHandler) {
34 this.port.onMessage.removeListener(this.push);
35 eventHandler.activatePortMessages();
36 for (const event of this.cache) {
37 eventHandler.handlePortMessage(event);
38 }
39 }
40
41 flush(eventHandler) {
42 eventHandler.deactivatePortMessages();

Callers 1

flushMethod · 0.95

Calls 2

activatePortMessagesMethod · 0.80
handlePortMessageMethod · 0.80

Tested by

no test coverage detected