Skip to main content

Mountain/Cache/AssetMemoryMap/
Invalidate.rs

1#![allow(non_snake_case)]
2
3//! Drop a single cached entry. Useful for hot-reload during dev when the
4//! bundler rewrites a chunk.
5
6use std::{path::Path, sync::Arc};
7
8use crate::Cache::AssetMemoryMap::{Entry, Map};
9
10pub fn Fn(Path:&Path) -> Option<Arc<Entry::Struct>> { Map::Fn().remove(Path).map(|(_, V)| V) }