SHARE
TWEET

Untitled

a guest Jul 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. await asyncio.gather(*[sync_users(user, api, batch) for batch in batches], return_exceptions=False)
  2.      
  3. loop = asyncio.get_event_loop()
  4. executor = ThreadPoolExecutor(max_workers=5)
  5. results = await loop.run_in_executor(executor, api.UsersLookup(user_id=batch, include_entities=True))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top