LazyMemoizerSignature

turbolift.effects.LazyMemoizerSignature
trait LazyMemoizerSignature[K, V] extends Signature

Signature for LazyMemoizerEffect.

Type parameters

K

input of the memoized function

V

output of the memoized function

Attributes

Graph
Supertypes
trait Signature
class Object
trait Matchable
class Any
Known subtypes
trait LazyMemoizerEffect[K, V]

Members list

Type members

Inherited and Abstract types

type ThisEffect

Self-reference to the effect being described by this Signature.

Self-reference to the effect being described by this Signature.

Becomes an alias of this.type, once the signature is inherited from Effect.

Attributes

Inherited from:
Signature

Value members

Abstract methods

def domain: Computation[Set[K], ThisEffect]

Snapshot of the domain.

Snapshot of the domain.

The set of all arguments that memo has been called so far.

Attributes

def memo(k: K): Computation[() => V, ThisEffect]

Invoke the function being memoized.

Invoke the function being memoized.

The function being memoized is not specified, until the handler is called.

Attributes

def toMap: Computation[Map[K, V], ThisEffect]

Snapshot of the relation.

Snapshot of the relation.

The map from all arguments that memo has been called so far, to corresponding results.

Attributes