yield return based on Coroutines

Daniel Schmid daniel at wwwmaster.at
Fri Oct 6 09:08:42 UTC 2023

I want to note that I was originally not talking about coroutines but 

The "Coroutines" in the subject is a typo on my side.

Am 03.10.2023 um 12:33 schrieb Andrew Haley:
> On 8/28/23 10:12, Alan Bateman wrote:
> > This looks fun! It's probably best to bring this to loom-dev. In its 
> archives you'll find several discussions about generators as several 
> people have been interested in that topic. Even when thread confined, 
> the main concern has been that exotic control flow yields leads to 
> surprising behavior with many of the existing constructs, e.g. in your 
> example think about behavior with finally blocks, try-with-resources, 
> locks, ... when the iterator is not fully consumed.
> Hmm, yes, I was thinking of doing something very much like this myself,
> so I'm glad I saw your reply.
> Even while the iterator is still running, there are still some potential
> surprises. I wonder if, whatever we do, any form of coroutine will 
> need to
> have its own identity as an instance of Thread.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4490 bytes
Desc: Kryptografische S/MIME-Signatur
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20231006/f3782065/smime.p7s>

More information about the loom-dev mailing list