MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / attach

Method attach

python/ctrlboard/src/observable.py:12–14  ·  view source on GitHub ↗

Attaches an observer to an obserable object

(self, observer: Observer)

Source from the content-addressed store, hash-verified

10 _observers: List[Observer] = []
11
12 def attach(self, observer: Observer):
13 """Attaches an observer to an obserable object"""
14 self._observers.append(observer)
15
16 def detach(self, observer: Observer):
17 """detaches an observer from an observable object"""

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected