mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-10-14 04:35:19 +02:00
![]() There is a race condition where a callback may never be called if the worker finishes handling a message before the callback is registered. In practice, with Go 1.25.0, I have not seen the callback lose this race. However, adding an explicit runtime.Gosched() before registering the callback does cause it to consistently lose the race. Therefore, it's probably best to patch this as whether to yield the Goroutine is outside our control. Signed-off-by: Marco Munizaga <git@marcopolo.io> Reviewed-by: Simon Martin <simon@nasilyan.com> Acked-by: Robin Jarry <robin@jarry.cc> |
||
---|---|---|
.. | ||
handlers | ||
imap | ||
jmap | ||
lib | ||
maildir | ||
mbox | ||
middleware | ||
notmuch | ||
types | ||
handler_notmuch.go | ||
worker.go | ||
worker_enabled.go |