pub fn set_limit(lim: usize) -> usize
Replaces the current limit, returning the previous one (for switching to a fiber’s stack and back).