concentrationOf

context(incarnation: Incarnation<T, *>)
fun <T> concentrationOf(origin: Any?): T

Creates a concentration value using the current Incarnation.

This is a convenience wrapper around Incarnation.createConcentration to keep DSL code concise.

Return

a concentration instance of type T.

Parameters

origin

an optional value used by the Incarnation to derive the concentration.