![](https://secure.gravatar.com/avatar/72ee673975357d43d79069ac1cd6abda.jpg?s=120&d=mm&r=g)
Oct. 28, 2012
5:55 a.m.
Yury Selivanov wrote:
In the above example scheduler *can* safely interrupt "c2" when it is invoked from "c1" at "p2". I.e. scheduler can't interrupt the coroutine when it is itself in its finally statement, but it's fine to interrupt it when it is not, even if it is invoked from other coroutine's finally block.
I'm confused about the relationship between c1 and c2 here, and what you mean by one coroutine "invoking" another. Can you post a version that uses yield-from instead of yielding objects with unknown (to me) semantics? -- Greg