MCPcopy Index your code
hub / github.com/python/cpython / _number_of_objects

Method _number_of_objects

Lib/multiprocessing/managers.py:636–644  ·  view source on GitHub ↗

Return the number of shared objects

(self)

Source from the content-addressed store, hash-verified

634 conn.close()
635
636 def _number_of_objects(self):
637 '''
638 Return the number of shared objects
639 '''
640 conn = self._Client(self._address, authkey=self._authkey)
641 try:
642 return dispatch(conn, None, 'number_of_objects')
643 finally:
644 conn.close()
645
646 def __enter__(self):
647 if self._state.value == State.INITIAL:

Callers 1

tearDownClassMethod · 0.80

Calls 2

dispatchFunction · 0.70
closeMethod · 0.45

Tested by 1

tearDownClassMethod · 0.64