MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / __init__

Method __init__

lib/nn/modules/comm.py:21–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 """A thread-safe future implementation. Used only as one-to-one pipe."""
20
21 def __init__(self):
22 self._result = None
23 self._lock = threading.Lock()
24 self._cond = threading.Condition(self._lock)
25
26 def put(self, result):
27 with self._lock:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected