MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/astroprint/camera/__init__.py:106–114  ·  view source on GitHub ↗
(self, inactivitySecs, onInactive)

Source from the content-addressed store, hash-verified

104
105class CameraInactivity(object):
106 def __init__(self, inactivitySecs, onInactive):
107 self._logger = logging.getLogger(__name__ + ':CameraInactivity')
108 self._stopped = False
109 self._inactivitySecs = inactivitySecs
110 self._inactivtyEvent = threading.Event()
111 self._onInactive = onInactive
112 self._thread = None
113
114 self.lastActivity = None
115
116 def start(self):
117 if not self._thread:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected