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

Method _create

Lib/multiprocessing/managers.py:605–615  ·  view source on GitHub ↗

Create a new shared object; return the token and exposed tuple

(self, typeid, /, *args, **kwds)

Source from the content-addressed store, hash-verified

603 server.serve_forever()
604
605 def _create(self, typeid, /, *args, **kwds):
606 '''
607 Create a new shared object; return the token and exposed tuple
608 '''
609 assert self._state.value == State.STARTED, 'server not yet started'
610 conn = self._Client(self._address, authkey=self._authkey)
611 try:
612 id, exposed = dispatch(conn, None, 'create', (typeid,)+args, kwds)
613 finally:
614 conn.close()
615 return Token(typeid, self._address, id), exposed
616
617 def join(self, timeout=None):
618 '''

Callers 1

tempMethod · 0.95

Calls 3

dispatchFunction · 0.70
TokenClass · 0.70
closeMethod · 0.45

Tested by

no test coverage detected