MCPcopy
hub / github.com/bugy/script-server / subscribe

Function subscribe

src/react/properties.py:184–187  ·  view source on GitHub ↗
(self, listener)

Source from the content-addressed store, hash-verified

182 def wrapper(cls):
183
184 def subscribe(self, listener):
185 if not hasattr(self, '_listeners'):
186 setattr(self, '_listeners', [])
187 self._listeners.append(listener)
188
189 setattr(cls, 'subscribe', subscribe)
190

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected