Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

Merge and Or leaks #86

Open
fomkin opened this issue Apr 22, 2016 · 0 comments
Open

Merge and Or leaks #86

fomkin opened this issue Apr 22, 2016 · 0 comments

Comments

@fomkin
Copy link
Member

fomkin commented Apr 22, 2016

// This functions returns new Rxes
val source1: Rx[B] = ???
val source2: Rx[B] = ???

def foo(): Rx[A] = source1.map(_.a)
def bar(): Rx[A] = source2.map(_.a)

FSM(...) {
  case ... => 
    // Objects created inside foo() and bar() will be live forever
    // and runs every source change
    foo() merge bar() 
}
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant