constverum / ProxyBroker

Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts:
http://proxybroker.readthedocs.io
Apache License 2.0
3.88k stars 1.09k forks source link

How to call broker.find within another aysnc fuction? #153

Open leonzweig opened 4 years ago

leonzweig commented 4 years ago

Is there a way to call broker.find within another async function instead of passing it to a task? I would like to use it as followed:

async def get_proxies(limit=50):
    proxies = await broker.find(limit=limit)
    return proxies