MCPcopy Index your code
hub / github.com/nodejs/node / tick

Function tick

test/parallel/test-events-on-async-iterator.js:230–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228async function eventTarget() {
229 const et = new EventTarget();
230 const tick = () => et.dispatchEvent(new Event('tick'));
231 const interval = setInterval(tick, 0);
232 let count = 0;
233 for await (const [ event ] of on(et, 'tick')) {

Callers 15

doReadAndCancelFunction · 0.70
test_finalizer.jsFile · 0.50
test.jsFile · 0.50
onsecureConnectFunction · 0.50
tick1Function · 0.50
onserverClosedFunction · 0.50
onsleepCloseFunction · 0.50
onlookupServiceFunction · 0.50
onserverClosedFunction · 0.50

Calls 1

dispatchEventMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…