MemoOptions

class MemoOptions<TResult>(val key: Any?, val debug: () -> Any?? = null, val onChange: (TResult) -> Unit? = null)

Options bag for memo / memoWithArg.

key identifies the memoised computation in debug output. debug gates the timing log on each call. onChange is invoked whenever the cached result is recomputed.

Constructors

Link copied to clipboard
constructor(key: Any?, debug: () -> Any?? = null, onChange: (TResult) -> Unit? = null)

Properties

Link copied to clipboard
val debug: () -> Any?? = null
Link copied to clipboard
val key: Any?
Link copied to clipboard
val onChange: (TResult) -> Unit? = null