a guest Jul 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- await asyncio.gather(*[sync_users(user, api, batch) for batch in batches], return_exceptions=False)
- loop = asyncio.get_event_loop()
- executor = ThreadPoolExecutor(max_workers=5)
- results = await loop.run_in_executor(executor, api.UsersLookup(user_id=batch, include_entities=True))
RAW Paste Data