rename take to manually drop

This commit is contained in:
Evan Almloff committed 2024-03-08 10:35:27 -06:00
1 parent 60a84956d1
commit 5f9e5f607b
4 files changed
+11 -11

No files matched your search

+3 -1
View File
@@ -50,7 +50,9 @@ impl<T: 'static, S: Storage<SignalData<T>>> ReadOnlySignal<T, S> {
#[doc(hidden)]
/// This should only be used by the `rsx!` macro.
pub fn __take(&self) -> T {
self.inner.take()
self.inner
.manually_drop()
.expect("Signal has already been dropped")
}
}