mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-08 13:01:20 +00:00
LazyLoadable now uses Loadable<&T, E> for it's SignalWith impl.
This commit is contained in:
parent
c85e9677ef
commit
3b3118caa0
@ -155,14 +155,14 @@ where
|
||||
T: 'static,
|
||||
E: Clone + 'static,
|
||||
{
|
||||
type Value<'a> = &'a Loadable<T, E>;
|
||||
type Value<'a> = Loadable<&'a T, E>;
|
||||
|
||||
fn with<F, O>(&self, f: F) -> O
|
||||
where
|
||||
F: for<'a> FnOnce(Self::Value<'a>) -> O,
|
||||
{
|
||||
self.load();
|
||||
self.inner.with(f)
|
||||
self.inner.with(|loadable| f(loadable.as_ref()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user