Skip to main content

on_fiber_with_stack

Function on_fiber_with_stack 

Source
pub unsafe fn on_fiber_with_stack<'a, R>(
    stack: NonNull<FiberStack>,
    func: impl FnOnce() -> R + 'a,
) -> impl Future<Output = Result<R, AsyncError>> + Send + 'a
where R: Send + 'a,
Expand description

Runs func on a native fiber backed by a reusable EVM stack slot.

ยงSafety

See on_fiber_result_with_stack.