We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import asyncio from aiohttp import request from aiomultiprocess import Pool # todo async def get(url): async with request("GET", url) as response: return await response.text("utf-8") async def mainmain(): urls = ["https://www.baidu.com"]*10 async with Pool() as pool: results = await pool.map(get, urls) return results if __name__ == '__main__': # Python 3.7 asyncio.run(mainmain())
The text was updated successfully, but these errors were encountered:
In the sample, there is some code that cannot be compiled normally. Did the author not test each piece individually when writing the documentation?
Sorry, something went wrong.
No branches or pull requests
Description
Details
The text was updated successfully, but these errors were encountered: