def Async(proxy):
 key = id(proxy)
 if (key in _async_proxy_cache):
  return _async_proxy_cache[key]
 else:
  new_proxy = AsyncNetProxy(proxy)
  _async_proxy_cache[key] = new_proxy
  return new_proxy

def Async ( proxy ) : key = id ( proxy ) if ( key in _async_proxy_cache ) : return _async_proxy_cache [ key ] else : new_proxy = AsyncNetProxy ( proxy ) _async_proxy_cache [ key ] = new_proxy return new_proxy
a factory for creating asynchronous proxies for existing synchronous ones .