MCPcopy Create free account
hub / github.com/python/cpython / detach

Method detach

Lib/multiprocessing/resource_sharer.py:55–58  ·  view source on GitHub ↗

Get the fd. This should only be called once.

(self)

Source from the content-addressed store, hash-verified

53 self._id = _resource_sharer.register(send, close)
54
55 def detach(self):
56 '''Get the fd. This should only be called once.'''
57 with _resource_sharer.get_connection(self._id) as conn:
58 return reduction.recv_handle(conn)
59
60
61class _ResourceSharer(object):

Callers

nothing calls this directly

Calls 1

get_connectionMethod · 0.80

Tested by

no test coverage detected