You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying a suspendable Iterable and I can't get it to work in enhanced for loops, probably due to the instrumentation not detecting that the Iterator has @Suspendable in its next() method definition.
Would it be possible to add support in instrumenting for loops, where the iterated element has a suspendable iterator as determined statically?
And this breaks because the instrumentation does not detect that the for loop will call hasNext/next which are suspendable. I think this can be determined statically, no?
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying a suspendable Iterable and I can't get it to work in enhanced for loops, probably due to the instrumentation not detecting that the Iterator has
@Suspendable
in itsnext()
method definition.Would it be possible to add support in instrumenting
for
loops, where the iterated element has a suspendable iterator as determined statically?In my case, I'm doing:
And this breaks because the instrumentation does not detect that the for loop will call
hasNext
/next
which are suspendable. I think this can be determined statically, no?The text was updated successfully, but these errors were encountered: