MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / on

Function on

lib/simple.js:143–149  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

141 return new Promise((resolve, reject) => {
142 let tries = 0
143 let on = (...args) => {
144 if (++tries > maxTries) reject('Max tries reached')
145 else if (is()) {
146 conn.ev.off(eventName, on)
147 resolve(...args)
148 }
149 }
150 conn.ev.on(eventName, on)
151 })
152 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected