Subject: Re: bug#53877: 29.0.50; [PATCH] async Gnus/nnml

From: Eli Zaretskii <[email-masked]>
Date: Thu, 10 Feb 2022 22:25:20 +0200

> From: Eric Abrahamsen <[email-masked]>
> Date: Thu, 10 Feb 2022 10:11:56 -0800
> Cc: [email-masked], Lars Ingebrigtsen <[email-masked]>
> 
> 
> (defun test-threads-outer ()
>   (dolist (label (list "one" "two" "three"))
>     (make-thread (lambda () (test-threads-inner label)) label)))
> 
> (defun test-threads-inner (label)
>   (let ((nnmail-article-buffer (format "nnmail-incoming-%s" label)))
>     (with-current-buffer (get-buffer-create nnmail-article-buffer)
>       (insert label))))
> 
> That creates three separate buffers, named correctly, and holding the
> correct text.

But only if you don't do anything in the main thread, just let it sit
idling.  Right?  Otherwise those other threads won't get an
opportunity to run.