MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / emitManyValues

Function emitManyValues

src/helpers/events.test.js:10–14  ·  view source on GitHub ↗
(getValue, eventName, length)

Source from the content-addressed store, hash-verified

8}
9
10export const emitManyValues = async (getValue, eventName, length) => {
11 await Promise.all(
12 Array.from({ length }, () => emitValue(getValue(), eventName)),
13 )
14}
15
16export const emit = async (eventName) => {
17 await emitValue(getError(), eventName)

Callers 3

repeat.test.jsFile · 0.90
limit.test.jsFile · 0.90
emitManyFunction · 0.85

Calls 1

emitValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…