pub async fn extend_future<U>(&self, f: impl Future<Output = U>) -> U {
        SCOPES.with(|scopes| {
            scopes.borrow_mut().push(ReactiveScope(self.0.clone())); // We now have 2 references to
                                                                     // the scope.
        });
        let u = f.await;
        SCOPES.with(|scopes| {
            scopes.borrow_mut().pop().unwrap(); // Rationale: pop the scope we pushed above.
                                                // Since we have 2 references to the scope, this
                                                // will not drop the scope.
        });
        u
    }
/// Runs the passed future in the reactive scope pointed to by this handle.
Runs the passed future in the reactive scope pointed to by this handle.
Runs the passed future in the reactive scope pointed to by this handle .
pub async fn extend_future<U>(&self, f: impl Future<Output = U>) -> U {
        SCOPES.with(|scopes| {
            scopes.borrow_mut().push(ReactiveScope(self.0.clone())); // We now have 2 references to
                                                                     // the scope.
        });
        let u = f.await;
        SCOPES.with(|scopes| {
            scopes.borrow_mut().pop().unwrap(); // Rationale: pop the scope we pushed above.
                                                // Since we have 2 references to the scope, this
                                                // will not drop the scope.
        });
        u
    }
pub async fn extend_future < U > ( & self , f : impl Future < Output = U > ) -> U { SCOPES . with ( | scopes | { scopes . borrow_mut ( ) . push ( ReactiveScope ( self . 0 . clone ( ) ) ) ; // We now have 2 references to // the scope. } ) ; let u = f . await ; SCOPES . with ( | scopes | { scopes . borrow_mut ( ) . pop ( ) . unwrap ( ) ; // Rationale: pop the scope we pushed above. // Since we have 2 references to the scope, this // will not drop the scope. } ) ; u }
Runs the passed future in the reactive scope pointed to by this handle.
Runs the passed future in the reactive scope pointed to by this handle .
&self
f
impl Future<Output = U>