Skip to content
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

New throttled decorator #181

Merged
merged 7 commits into from
Aug 16, 2019
Merged

New throttled decorator #181

merged 7 commits into from
Aug 16, 2019

Conversation

Birdi7
Copy link
Contributor

@Birdi7 Birdi7 commented Aug 3, 2019

Description

This PR can't be merged until #179 will be closed, as there is no point to use it.

As #179 is open, this PR is marked as a draft.

Add a new meta-decorator Dispatcher.throttled for convenient usage of the throttling manager. See #166. The arguments in the register methods aren't implemented in this PR.

Update the example of usage of throttling manager to show this decorator.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I tested it manually with the new throttling example.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@Birdi7 Birdi7 changed the title Add new ways throttle New throttled decorator Aug 3, 2019
@Birdi7 Birdi7 marked this pull request as ready for review August 6, 2019 09:10
@JrooTJunior
Copy link
Member

This PR is also have conflicts with the latest state of repository

# Conflicts:
#	examples/throtling_example.py
@Birdi7
Copy link
Contributor Author

Birdi7 commented Aug 15, 2019

This PR is also have conflicts with the latest state of repository

Resolved

@JrooTJunior JrooTJunior merged commit 9b2971a into aiogram:dev-2.x Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants