MCPcopy Create free account
hub / github.com/bberak/react-native-game-engine / subscribe

Method subscribe

src/DefaultTimer.js:46–49  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

44 }
45
46 subscribe(callback) {
47 if (this.subscribers.indexOf(callback) === -1)
48 this.subscribers.push(callback);
49 }
50
51 unsubscribe(callback) {
52 this.subscribers = this.subscribers.filter(s => s !== callback)

Callers 3

constructorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected