Add debug information to borrows and ownership in signals
This commit is contained in:
1 parent
d8704a0447
commit
df85b25548
6 files changed
+497
-75
No files matched your search
@@ -83,7 +83,7 @@ impl Effect {
|
||||
|
||||
/// Run the effect callback immediately. Returns `true` if the effect was run. Returns `false` is the effect is dead.
|
||||
pub fn try_run(&self) {
|
||||
if let Some(mut callback) = self.callback.try_write() {
|
||||
if let Ok(mut callback) = self.callback.try_write() {
|
||||
{
|
||||
get_effect_stack().effects.borrow_mut().push(*self);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user