replace_scheduling_functions

Function replace_scheduling_functions 

Source
pub fn replace_scheduling_functions<T>(linker: &mut Linker<T>) -> Result<()>
where T: Send + 'static,
Expand description

Adds implementations for WASI preview 1 poll_oneoff and sched_yield to the linker which will return immediately. Note: This function will enable shadowing on the linker.