-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
improvementit changes existing functionality to make it behave betterit changes existing functionality to make it behave better
Description
State handling (Mode) is ugly. There is Modechange event that just informs the change and Metexed avutal value available through state. And some local states copying from it.
Proposal
- replace Mutex with watch channel for Mode
- now each interesting party can observe the change without dedicated Event
- completely clean usage of the event
- it will reduce
KeyScannerandqmkto pure event producers as the only event they were listening to wasModeChange
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementit changes existing functionality to make it behave betterit changes existing functionality to make it behave better