Advertisement
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))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement