Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow stacking routine decorators#535

Open
Joosemi02 wants to merge 2 commits into
TwitchIO:mainfrom
Joosemi02:main
Open

Allow stacking routine decorators#535
Joosemi02 wants to merge 2 commits into
TwitchIO:mainfrom
Joosemi02:main

Conversation

@Joosemi02
Copy link
Copy Markdown

This simple PR allows stacking multiple decorators on the same coroutine.
E.g. you have two routines (send_alert, send_reminder). This allows using:

@send_alert.before_routine
@send_reminder.before_routine
async def before_sending():
    ...
  • Add return func statement to routine decorators

Add return func statement to routine decorators

Signed-off-by: Joosemi02 <[email protected]>
Signed-off-by: Joosemi02 <[email protected]>
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.

1 participant