code: async def save(proxies, filename):
      
      with open(filename, 'w') as f:
          while True:
              proxy = await proxies.get()
              if proxy is None:
                  break
              f.write('%s:%d\n' % (proxy.host, proxy.port))
docs: Save proxies to a file.