Skip to main content

pack_zoom

Function pack_zoom 

Source
pub fn pack_zoom(
    entry: PupEntry,
    globals: Packed,
    f: &Value,
    args: &Value,
) -> DogeResult
Expand description

pack.zoom(f, args) — spawn f onto a new pup, called with the List args. The callee’s captures and the caller’s top-level variables are snapshotted in; each argument is transferred in. f must be callable and args must be a List, or it is a catchable type error. entry is the generated trampoline that rebuilds a world inside the pup and runs the call.