diff options
author | Simon Ser <contact@emersion.fr> | 2019-05-19 09:50:21 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-19 11:51:25 -0400 |
commit | 248345d875e958b70f48797bfe6e822cc9485eb8 (patch) | |
tree | 4c46736cc4d1c80c661203c275a77d06ae0afa28 /lib/ui/textinput.go | |
parent | f27db333052aa24a0aad135c09ce7969bf31bc56 (diff) |
worker/types/worker: remove mutex
Worker.callbacks contains two types of callbacks: some are action callbacks,
some are message callbacks. Each of those is access from one side of the
communication channel (UI goroutine vs. worker goroutine).
Instead of using a channel, we can use two different maps for each kind. This
simplifies the code and also ensures we don't call an action callback instead
of a message callback (or the other way around).
Diffstat (limited to 'lib/ui/textinput.go')
0 files changed, 0 insertions, 0 deletions