(self, send, close)
Register resource, returning an identifier.
Register resource, returning an identifier.
Register resource returning an identifier .
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)
def register ( self , send , close ) : with self . _lock : if self . _address is None : self . _start ( ) self . _key += 1 self . _cache [ self . _key ] = ( send , close ) return ( self . _address , self . _key )