TransactionKeyGenerator<LogicType extends Logic> typedef

TransactionKeyGenerator<LogicType extends Logic> = Logic Function(LogicType data)

Extracts the key used to associate a transaction with retained state.

A key is a projection used for matching. It may be the transaction's tag, but callers can select another field without relabeling that field as the transaction identity.

Implementation

typedef TransactionKeyGenerator<LogicType extends Logic> = Logic Function(
    LogicType data);