Ref

object Ref
Companion:
class
class Object
trait Matchable
class Any
Ref.type

Value members

Concrete methods

def never[A <: AnyRef](value: A): Ref[A]

A Ref that is never equal to anything, including itself.

A Ref that is never equal to anything, including itself.

Use for MemoryObservables of mutable values (I mean, if your observable emits the same mutable value when it updates, instead of emitting a new immutable value)

def ref[A <: AnyRef](value: A): Ref[A]

A Ref that is only equal if the values match referentially

A Ref that is only equal if the values match referentially

Use for MemoryObservables of large immutable Maps or Lists to improve performance (otherwise their equals method would iterate through the whole map / list to find differences)