MCPcopy Create free account
hub / github.com/kiibohd/controller / new_callback

Method new_callback

Lib/host.py:189–195  ·  view source on GitHub ↗

Add a callback to the history (append only). Expects a CallbackHistoryItem namedtuple.

(self, cbhistory)

Source from the content-addressed store, hash-verified

187 self.last_read = 0
188
189 def new_callback(self, cbhistory):
190 '''
191 Add a callback to the history (append only).
192 Expects a CallbackHistoryItem namedtuple.
193 '''
194 logger.debug("{}", cbhistory)
195 self.history.append(cbhistory)
196
197 def all(self):
198 '''

Callers 1

capabilityCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected