Skip to main content

split

Function split 

Source
pub fn split<'a, 'str>(
    ctx: &'a mut Context<'str>,
) -> (&'a mut Registry<FunctionId, FunctionBody<'str>>, PassCtx<'a, 'str>)
Expand description

Split a context into its mutable bodies registry and the read-only module view, so a worker can hold one body &mut while reading shared state.