MCPcopy Create free account
hub / github.com/Syncplay/syncplay / setPosition

Method setPosition

syncplay/server.py:616–621  ·  view source on GitHub ↗
(self, position, setBy=None)

Source from the content-addressed store, hash-verified

614 self.writeToDb()
615
616 def setPosition(self, position, setBy=None):
617 self._position = position
618 for watcher in self._watchers.values():
619 watcher.setPosition(position)
620 self._setBy = setBy
621 self.writeToDb()
622
623 def setPermanent(self, newState):
624 self._permanent = newState

Callers 3

forcePositionUpdateMethod · 0.45
addWatcherMethod · 0.45
setPositionMethod · 0.45

Calls 1

writeToDbMethod · 0.95

Tested by

no test coverage detected