images: make promise payload optional to take easily

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind committed 2025-05-04 12:56:38 -04:00
1 parent d204db4b29
commit def9de0dc0
2 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ use std::path::{self};
use std::path::{Path, PathBuf};
use tracing::warn;
pub type MediaCacheValue = Promise<Result<TexturedImage>>;
pub type MediaCacheValue = Promise<Option<Result<TexturedImage>>>;
pub type MediaCacheMap = HashMap<String, MediaCacheValue>;
#[derive(Default)]