MapRef

trait MapRef[F[_], K, V] extends K => Ref[F, V]

This is a total Map from K to Ref[F, V]. this allows us to use the Ref api backed by a ConcurrentHashMap

This is a total Map from K to Ref[F, V]. this allows us to use the Ref api backed by a ConcurrentHashMap

This uses java universal hashCode and equality on K

Companion
object
trait K => Ref[F, V]
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(k: K): Ref[F, V]

Access the reference for this Key

Access the reference for this Key

def keys: F[List[K]]

Snapshot of keys, may be concurrently updated after this snapshot Experimental: Original interface was only apply, currently all backends can implement this smoothly and its useful for operations you need to do things to all the References.

Snapshot of keys, may be concurrently updated after this snapshot Experimental: Original interface was only apply, currently all backends can implement this smoothly and its useful for operations you need to do things to all the References.

Inherited methods

@unspecialized
def andThen[A](g: Ref[F, V] => A): K => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => K): A => Ref[F, V]
Inherited from
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1