Подробнее
r?J resource_manager.py~Z •" 1 neutron > api > rpc > callbacks > C* resource.manager.py1 | 85 I 86____1_____callbacks » I EXPLORER NEUTRON [WSU U8UNT\M2.04] ni-ref > Producer ResourceCallbacksManager del self._eallbacks[resource_type] Except KeyError: _ raise rpc_exc^CanbackNotFound(resource_type-resource_type) cef clear(self): self..callbacks - dict()(0) cef get_callback(self, resource.type): _validate_resource_type(resource_type) try: | return self._callbacks[resource_type] except KeyError: |____ raise rpc.exc.CallbackHotFound(resource type»resource_type) callbacks - collections.defaultdict(set) de< _add_callback(self, callback, resource.type) self._callbacks[resource_typeJ.add(callback) def _delete_callback(self, callback, resource.type): try: | self._callbacks[resource_type].reaove(callback) if not self._callbacks[resource_type]: del self,_callbacks[resource_type] except KeyError: . raise rpc_exc.CollbackftotFound(resource.type-resource_type) def clear(self): ^ self lbacks - collections.defaultdict(set) icKs(self, resource.type): the callback if found. None otherwise Jit be a valid resource type
Fumos,Проект Восток,Игры
Еще на тему
Ужасами, что там написаны, людей и до полусмерти напугать можно