While it makes sense to see Java coroutine as Thread, it makes less sense to see generators as Thread.
So if we introduce generators, we will use a different mechanism than virtual threads, so the expectations are not the same, so most of the spooky issues discuss here do not exist. Rémi ----- Original Message ----- > From: "Alan Bateman" <[email protected]> > To: "Alex Otenko" <[email protected]> > Cc: "loom-dev" <[email protected]> > Sent: Tuesday, January 13, 2026 9:00:25 AM > Subject: Re: [External] : Re: Ephemeral threads > On 13/01/2026 06:42, Alex Otenko wrote: >> >> I think there are plenty of designs with generators, iterators and >> async where non-termination is not a bug. > > That is true is some other languages/runtimes. If Java were to add > generators or some other exotic control flow in the future then there > would be more spooky issues to work through, some of which overlap with > the spooky issues that have come up in the discussion here. > > -Alan
