pub fn recover_from_panic()Expand description
Reset the runtime to a clean idle state after a panic unwound through a drain or batch — e.g. a
reactive-cycle assertion ([RERUN_CAP]) that tripped inside a native event callback which the
backend contained (rather than letting it abort the process across the C ABI — a GTK/Qt signal
trampoline can’t unwind). The in-flight pending work and the observer stack are dropped (the next
interaction re-derives them); persistent registrations (effects, memos, turn-end hooks) are kept.