New issue
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
Limit the interval between two requests. #29
Comments
Add |
@Jie-OY 666. |
(sorry for my late reply firstly) |
Why not asyncio.sleep? |
@rainfd As for why,you can test with the following method if you argee with me. 😄 @gaojiuli @rainfd I used wrong way to test before: add timestamp when write data stream to file as the follow shows:
And just now i found it's wrong obviously. Now,i think the right test way is to print timestmap in async def fetch.The excerpt as follows(assume the interval is 1s):
what do you think about the test way?And the results are as expected(But still has a problem,the program will not exit finally). |
@rainfd @Jie-OY |
@gaojiuli I have different opinions. Whether you put As for
I know that my solution can only limit the interval of the start time of two requests, but why not this? I thought set interval is just to limit the interval of the start time of two requests...:stuck_out_tongue: |
Then a request after another reqeust should wait for 5 seconds. and the
concurrency
will be invalid.The text was updated successfully, but these errors were encountered: