MCPcopy Create free account
hub / github.com/PrismarineJS/node-minecraft-protocol / callOnce

Function callOnce

test/serverTest.js:542–547  ·  view source on GitHub ↗
(fn, ...args)

Source from the content-addressed store, hash-verified

540}
541
542function callOnce (fn, ...args) {
543 console.log('Call Fn', fn.called)
544 if (fn.called) return
545 fn(...args)
546 fn.called = true
547}

Callers 1

checkFinishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected