MCPcopy Index your code
hub / github.com/binaryjs/binaryjs / setZeroTimeoutPostMessage

Function setZeroTimeoutPostMessage

lib/util.js:42–45  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

40 // no time argument (always zero) and no arguments (you have to
41 // use a closure).
42 function setZeroTimeoutPostMessage(fn) {
43 timeouts.push(fn);
44 global.postMessage(messageName, '*');
45 }
46
47 function handleMessage(event) {
48 if (event.source == global && event.data == messageName) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected