Locker

org.typelevel.vault.Locker$
See theLocker companion class
object Locker

Attributes

Companion:
class
Source:
Locker.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Locker.type

Members list

Concise view

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

Attributes

Source:
Locker.scala

Deprecated methods

def lock[A](k: Key[A], a: A): Locker

Put a single value into a Locker

Put a single value into a Locker

Attributes

Deprecated
[Since version 3.1.0]
Source:
Locker.scala
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

Attributes

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]
Source:
Locker.scala