MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / getAllControllerByType

Function getAllControllerByType

src/controller/main.controller.js:169–180  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

167}
168
169export async function getAllControllerByType(type) {
170 const result = [];
171 // wait for last addPort action in queue to finish
172 await addPortQueue.queue[addPortQueue.queue.length - 1];
173 for (const [, contr] of controllerPool.map.entries()) {
174 if (contr.mainType === type) {
175 await allPortsConnected(contr.id);
176 result.push(contr);
177 }
178 }
179 return result;
180}
181
182export const controllerPool = new ControllerMap();
183

Callers 5

updatePreferencesMethod · 0.90
sendKeyUpdateMethod · 0.90
reloadFramesFunction · 0.90
getByKeyringFunction · 0.90
createControllerFunction · 0.85

Calls 2

allPortsConnectedFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected