MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / send

Method send

curriculum/src/test/utils/pseudo-worker.js:23–28  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

21 let callback;
22 const queue = [];
23 function send(event) {
24 if (!queue.length && callback) {
25 callback();
26 }
27 queue.push(event);
28 }
29
30 worker[eventName] = e => send(e);
31

Callers 1

inputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected