MCPcopy Create free account
hub / github.com/apache/fory / _get_fory

Method _get_fory

python/pyfory/_fory.py:665–676  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

663 self._instances_created = False
664
665 def _get_fory(self):
666 with self._lock:
667 if self._pool:
668 return self._pool.pop()
669 self._instances_created = True
670 if self._fory_factory is not None:
671 fory = self._fory_factory()
672 else:
673 fory = self._fory_class(**self._config)
674 for callback in self._callbacks:
675 callback(fory)
676 return fory
677
678 def _return_fory(self, fory):
679 with self._lock:

Callers 3

serializeMethod · 0.95
deserializeMethod · 0.95
dumpMethod · 0.95

Calls 1

popMethod · 0.45

Tested by

no test coverage detected