<div dir="auto">I ran into something similar, but forgot to report it.<div dir="auto"><br></div><div dir="auto">I think your idea is good, and should be added.</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Dec 26, 2025, 6:01 AM Kasper Nielsen <<a href="mailto:kasperni@gmail.com" target="_blank" rel="noreferrer">kasperni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I encountered a WrongThreadException the other day from invalid use of<br>
StructuredTaskScope. However, finding out why was a bit more difficult<br>
than needed. I had to fire up a debugger to get the owning thread of<br>
my StructuredTaskScope. It would have been somewhat easier to figure<br>
out what exactly went wrong if StructuredTaskScopeImpl.ensureOwner<br>
included the name of both the owning thread, and the current thread in<br>
its error message.<br>
<br>
/Kasper<br><br>
</blockquote></div></div>