Skip to main content

in_frame

Function in_frame 

Source
pub fn in_frame<R>(frame: AsyncFrame, f: impl FnOnce() -> R) -> R
Expand description

Run f with frame as the current async context frame, restoring the previous one afterwards (a store a callback enterWiths stays inside it).