aerc/worker/types
Simon Ser 248345d875 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).
2019-05-19 11:51:25 -04:00
..
messages.go worker/types/worker: make ID allocation atomic 2019-05-19 11:51:22 -04:00
worker.go worker/types/worker: remove mutex 2019-05-19 11:51:25 -04:00