Replies: 1 comment
-
Thanks for the feedback! Since Option 1 is already implemented, we will update the docs for that first. Later we can add Option 2 if people want. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a couple solutions for issue #876
Currently the class attribute
State.event_handler
is of typeEventHandler
while the object attributeself.event_handler
is the raw function that the event handler wraps.When returning event handlers from other event handlers to add to the queue we have a couple of options.
Option 1:
self.
refers to the function, andState.
refers to theEventHandler
object.self.other_handler()
State.other_handler(arg)
Option 2:
self.
neverState.
self.other_handler()
7 votes ·
Beta Was this translation helpful? Give feedback.
All reactions