pub fn trigger_subscribers(&self) {
        // Clone subscribers to prevent modifying list when calling callbacks.
        let subscribers = self.0.borrow().clone();
        // Subscriber order is reversed because effects attach subscribers at
        // the end of the effect scope. This will ensure that outer
        // effects re-execute before inner effects, preventing inner
        // effects from running twice.
        for subscriber in subscribers.values().rev() {
            // subscriber might have already been destroyed in the case of
            // nested effects
            if let Some(callback) = subscriber.upgrade() {
                // Call the callback.
                callback.borrow_mut()();
            }
        }
    }
/// Calls all the subscribers without modifying the state.
/// This can be useful when using patterns such as inner mutability where
/// the state updated will not be automatically triggered. In the
/// general case, however, it is preferable to use [`Signal::set()`]
/// instead.
Calls all the subscribers without modifying the state.
This can be useful when using patterns such as inner mutability where
the state updated will not be automatically triggered. In the
general case, however, it is preferable to use [`Signal::set()`]
instead.
Calls all the subscribers without modifying the state . This can be useful when using patterns such as inner mutability where the state updated will not be automatically triggered . In the general case however it is preferable to use [ ` Signal :: set () ` ] instead .
pub fn trigger_subscribers(&self) {
        // Clone subscribers to prevent modifying list when calling callbacks.
        let subscribers = self.0.borrow().clone();
        // Subscriber order is reversed because effects attach subscribers at
        // the end of the effect scope. This will ensure that outer
        // effects re-execute before inner effects, preventing inner
        // effects from running twice.
        for subscriber in subscribers.values().rev() {
            // subscriber might have already been destroyed in the case of
            // nested effects
            if let Some(callback) = subscriber.upgrade() {
                // Call the callback.
                callback.borrow_mut()();
            }
        }
    }
pub fn trigger_subscribers ( & self ) { // Clone subscribers to prevent modifying list when calling callbacks. let subscribers = self . 0 . borrow ( ) . clone ( ) ; // Subscriber order is reversed because effects attach subscribers at // the end of the effect scope. This will ensure that outer // effects re-execute before inner effects, preventing inner // effects from running twice. for subscriber in subscribers . values ( ) . rev ( ) { // subscriber might have already been destroyed in the case of // nested effects if let Some ( callback ) = subscriber . upgrade ( ) { // Call the callback. callback . borrow_mut ( ) ( ) ; } } }
Calls all the subscribers without modifying the state.
Calls all the subscribers without modifying the state .
&self
&self