some help with mixin #5939
-
|
I find mixin very helpful, but I want a specific case to work. I have the following code: I want to yield the on_success event handler after handle processing is successfully completed. How can I achieve this ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
have you tried that won't work in a background task due to #4947, but in that case you can use |
Beta Was this translation helpful? Give feedback.
-
|
This works |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, @masenf |
Beta Was this translation helpful? Give feedback.
have you tried
yield type(self).on_success?that won't work in a background task due to #4947, but in that case you can use
self.__class__.on_success