Locker

object Locker
Companion
class
class Object
trait Matchable
class Any

Value members

Methods

def lock[A](k: Key[A], a: A): Locker
Put a single value into a Locker
def unlock[A](k: Key[A], l: Locker): Option[A]
Retrieve the value from the Locker. If the reference equality
instance backed by a Unique value is the same then allows
conversion to that type, otherwise as it does not match
then this will be None
Value Params
k
The key to check, if the internal Unique value matches
then this Locker can be unlocked as the specifed value
l
The locked to check against