Function corosensei::on_stack
source · pub fn on_stack<F, R>(stack: impl Stack, f: F) -> Rwhere
F: FnOnce() -> R,
Expand description
Executes some code on the given stack.
This is useful when running with limited stack space: stack-intensive computation can be executed on a separate stack with more space.
Panics
Any panics in the provided closure are automatically propagated back up to the caller of this function.