Skip to main content

Cache/AssetMemoryMap/
Invalidate.rs

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