diff options
author | Simon Ser <contact@emersion.fr> | 2019-05-19 09:50:14 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-19 11:51:18 -0400 |
commit | 7c6325977b55385bc65f0a08f4da8ed6dfede52a (patch) | |
tree | 0aac968a8ade4204e57463ec68de7048eaf04668 /config/bindings.go | |
parent | a15ea01cfb0a303355b2e6bb31e85ece0d048ac2 (diff) | |
download | aerc-7c6325977b55385bc65f0a08f4da8ed6dfede52a.tar.gz |
lib/ui/ui: use atomic instead of channel
This makes it so an atomic `invalid` value is used instead of an unbuffered
channel. When many invalidations kick in, a lot of values were sent to the
channel.
(Since OnInvalidate's callback can be run in any goroutine, we need to be
careful about races here.)
Diffstat (limited to 'config/bindings.go')
0 files changed, 0 insertions, 0 deletions