images: make promise payload optional to take easily

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-04-29 11:13:48 -04:00
parent d204db4b29
commit def9de0dc0
2 changed files with 15 additions and 10 deletions

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)]