On Thursday, 10 July 2025 at 23:57:48 UTC, Ali Çehreli wrote:
On 7/10/25 7:28 AM, Bienlein wrote:

> some blockinglist wrapper around slist

I would try std.concurrency first because its message queue is a blocking queue anyway if you limit the size with setMaxMailboxSize(). I have some examples of std.concurrency here:

  https://ddili.org/ders/d.en/concurrency.html

Ali

Just saw that inside https://github.com/dlang/phobos/blob/master/std/concurrency.d there is a class MessageBox which does just what I want. Unhappily class MessageBox is private and therefore cannot be reused. I never understood the point of private inner classes as they prevent reuse. If you are forced to design for reuse you are also forced to think about reusable design which makes the design better (and besides allows for reuse).

Reply via email to