fix signals with debug information
This commit is contained in:
1 parent
c67e0705ea
commit
1c2a6fa010
1 file changed
+3
-3
@@ -237,9 +237,9 @@ impl<T: 'static> Signal<T> {
|
|||||||
/// Get the current value of the signal. **Unlike read, this will not subscribe the current scope to the signal which can cause parts of your UI to not update.**
|
/// Get the current value of the signal. **Unlike read, this will not subscribe the current scope to the signal which can cause parts of your UI to not update.**
|
||||||
///
|
///
|
||||||
/// If the signal has been dropped, this will panic.
|
/// If the signal has been dropped, this will panic.
|
||||||
pub fn peak(&self) -> Ref<T> {
|
pub fn peak(&self) -> GenerationalRef<T> {
|
||||||
let inner = self.inner.read();
|
let inner = self.inner.read();
|
||||||
Ref::map(inner, |v| &v.value)
|
GenerationalRef::map(inner, |v| &v.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a mutable reference to the signal's value.
|
/// Get a mutable reference to the signal's value.
|
||||||
@@ -439,7 +439,7 @@ impl<T: 'static> ReadOnlySignal<T> {
|
|||||||
/// Get the current value of the signal. **Unlike read, this will not subscribe the current scope to the signal which can cause parts of your UI to not update.**
|
/// Get the current value of the signal. **Unlike read, this will not subscribe the current scope to the signal which can cause parts of your UI to not update.**
|
||||||
///
|
///
|
||||||
/// If the signal has been dropped, this will panic.
|
/// If the signal has been dropped, this will panic.
|
||||||
pub fn peak(&self) -> Ref<T> {
|
pub fn peak(&self) -> GenerationalRef<T> {
|
||||||
self.inner.peak()
|
self.inner.peak()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user