UseMutableSource

case
class UseMutableSource[S, A]()

Instantiate this to sync types needed for both funcs.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def create(source: Any, getVersion: Function0[Any]): MutableSource[S]
def use(source: MutableSource[S], getSnapshot: Function1[S, A], subscribe: Function2[S, Function0[Unit], Function0[Unit]]): A

subscribe 2nd arg is to be called whenever the value changes and is stable. Last is an unsubscribe for unmounting.

subscribe 2nd arg is to be called whenever the value changes and is stable. Last is an unsubscribe for unmounting.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product