Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MutableX

Create X-sized mutable signals for FutureSignals.

Usage

From tests/basic.rs

#[cfg(test)]
pub mod test {
    use futures_signals::signal::{Mutable, SignalExt};
    use mutablex::mutable_x;

    #[test]
    pub fn basic() {
        mutable_x!(2);

        let stream_a = Mutable::new(1);
        let stream_b = Mutable::new(2);

        let combination = Mutable2::new(stream_a.clone(), stream_b.clone());

        let _ = combination.map(|(a, b)| {
            println!("{} {}", a, b);
        });

        stream_a.set(3);
        stream_b.set(4);
    }
}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages