constverum/ProxyBroker

How to call broker.find within another aysnc fuction?

leonzweig opened this issue · 0 comments

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