fsm icon indicating copy to clipboard operation
fsm copied to clipboard

Context in event handlers

Open ilyakaznacheev opened this issue 3 years ago • 1 comments

It would be great to add a context to event trigger function and event handler function signature because it is required in many operations.

Probably it will require to double the methods (i.e. fsm.EventContext(ctx, event, args...) and type CallbackContext func(ctx, *Event).

ilyakaznacheev avatar Sep 23 '20 20:09 ilyakaznacheev

Good suggestion! Will look into it when I have some time.

maxekman avatar Jun 10 '21 08:06 maxekman

👏

ilyakaznacheev avatar Nov 08 '22 07:11 ilyakaznacheev