Run fn with currentSpan = s, restoring on exit. Keeps the stack consistent through yield, yield*, and re-entrant calls.
fn
currentSpan = s
yield
yield*
Run
fnwithcurrentSpan = s, restoring on exit. Keeps the stack consistent throughyield,yield*, and re-entrant calls.