pub fn close_memory(&self, memory_id: MemoryId) {
        let mut guard = self.repr.lock().unwrap();
        let removed = guard.memories.remove(&memory_id);
        assert!(
            removed.is_some(),
            "Failed to close state {}: id not found",
            memory_id
        );
        // Dropping memory may be expensive. Do it on a worker thread to avoid
        // blocking the main thread of the sandbox process.
        guard.workers_for_cleanup.execute(move || drop(removed));
    }
/// Closes previously opened memory instance, by id.
Closes previously opened memory instance, by id.
Closes previously opened memory instance by id .
pub fn close_memory(&self, memory_id: MemoryId) {
        let mut guard = self.repr.lock().unwrap();
        let removed = guard.memories.remove(&memory_id);
        assert!(
            removed.is_some(),
            "Failed to close state {}: id not found",
            memory_id
        );
        // Dropping memory may be expensive. Do it on a worker thread to avoid
        // blocking the main thread of the sandbox process.
        guard.workers_for_cleanup.execute(move || drop(removed));
    }
pub fn close_memory ( & self , memory_id : MemoryId ) { let mut guard = self . repr . lock ( ) . unwrap ( ) ; let removed = guard . memories . remove ( & memory_id ) ; assert ! ( removed is_some ( ) " " memory_id ) ; // Dropping memory may be expensive. Do it on a worker thread to avoid // blocking the main thread of the sandbox process. guard . workers_for_cleanup . execute ( move | | drop ( removed ) ) ; }
Closes previously opened memory instance, by id.
Closes previously opened memory instance by id .
&self
memory_id
MemoryId
&self
memory_id
MemoryId