class_docstr: Manager for resources using background thread.
class_docstr_tok: ["Manager","for","resources","using","background","thread","."]
docstr: Register resource, returning an identifier.
docstr_tok: ["Register","resource",",","returning","an","identifier","."]
code: def register(self, send, close):
      """Register resource, returning an identifier."""
      with self._lock:
          if self._address is None:
              self._start()
          self._key += 1
          self._cache[self._key] = (send, close)
          return (self._address, self._key)
  
file_path: multiprocess/py3.11/multiprocess/resource_sharer.py
imports: import os
  import signal
  import socket
  import sys
  import threading
  from .None import process
  from .context import reduction
  from .None import util
label_desc: Use image node_id 2 for calling the _ResourceSharer obj's underlying member method code with example usage: obj.register(send, close) and returns: self,  self