Jonathan Walsh
07/11/2018, 11:07 PMgroostav
07/13/2018, 5:49 AMnew Exception().subSequence(...)
) at every suspension point. Since every continuation has a reference to its parent, you could then "walk" back up the continuations, asking each for its stack-trace sub-section, stitch them together, and produce a full stack trace.
note that this means every suspension call is doing a fairly expensive reflection operation, which would reduce your performance by an order of magnitude (or more) --which, honestly, might not be a problem, depending on your application.Jonathan Walsh
07/13/2018, 4:55 PM