MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / release_handles

Function release_handles

compiler/src/main/mod.rs:156–158  ·  view source on GitHub ↗

Release a batch of handles in one runtime borrow.

(handles: &[u32])

Source from the content-addressed store, hash-verified

154
155// Release a batch of handles in one runtime borrow.
156pub(super) fn release_handles(handles: &[u32]) {
157 with_runtime(|rt| for &h in handles { rt.handles.release(h); });
158}
159
160/* `with_vm` that errors when called outside run(). */
161pub(super) fn in_vm(err: &'static str, f: impl FnOnce(&mut VM<'static>) -> Result<Val, VmErr>) -> Result<Val, VmErr> {

Callers 1

make_native_bindingFunction · 0.85

Calls 2

with_runtimeFunction · 0.85
releaseMethod · 0.80

Tested by

no test coverage detected