-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the Module:handle_event/4 caching suggestion
Implement not wrapping the fun() for handle_event_function. Fix the handle_event_fun() type. The suggestion's type was that the handle_event_fun() should be either a state enter fun() or a handle event fun(), but it should be a fun() that is both. Revert the callback_mode/1 type checking function and introduce params_callback_mode/2 to do the conversion into the cached value. By that most of callback_mode_result/6 could be reverted, only the finishing #params{} construction needs a change.
- Loading branch information
1 parent
9617355
commit 07eff3b
Showing
1 changed file
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters