This commit is contained in:
Greg Johnston
2025-09-19 11:06:27 -04:00
parent d7d2573b3e
commit 8a28a30bef

View File

@@ -137,7 +137,11 @@ where
fn new_with_value_erased(
#[allow(unused_mut)] mut fun: Box<dyn FnMut(Option<T>) -> T + 'static>,
initial_value: Option<T>,
#[cfg(feature = "subsecond")] hot_fn_ptr: CurrentHotPtr,
// this argument can be used to invalidate individual effects in the future
// in present experiments, I have found that it is not actually granular enough to make a difference
#[allow(unused)]
#[cfg(feature = "subsecond")]
hot_fn_ptr: CurrentHotPtr,
) -> Self {
// codegen optimisation:
fn prep() -> (Owner, Arc<RwLock<EffectInner>>, crate::channel::Receiver)