summary refs log tree commit diff stats
path: root/commands/quit.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-05-19 09:50:21 +0000
committerDrew DeVault <sir@cmpwn.com>2019-05-19 11:51:25 -0400
commit248345d875e958b70f48797bfe6e822cc9485eb8 (patch)
tree4c46736cc4d1c80c661203c275a77d06ae0afa28 /commands/quit.go
parentf27db333052aa24a0aad135c09ce7969bf31bc56 (diff)
downloadaerc-248345d875e958b70f48797bfe6e822cc9485eb8.tar.gz
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 'commands/quit.go')
0 files changed, 0 insertions, 0 deletions
d='n112' href='#n112'>112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133