Locker

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

Value members

Concrete methods

def apply[A](k: InsertKey[A], a: A): Locker

Put a single value into a Locker

Put a single value into a Locker

Deprecated methods

@deprecated("Use Locker(k, a)", since = "3.1.0")
def lock[A](k: Key[A], a: A): Locker

Put a single value into a Locker

Put a single value into a Locker

Deprecated
[Since version 3.1.0]
@deprecated("Use l.unlock(k)", since = "3.1.0")
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

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 parameters:
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

Deprecated
[Since version 3.1.0]